diff --git a/packages/typespec-powershell/src/convertor/convertor.ts b/packages/typespec-powershell/src/convertor/convertor.ts
index 3855ab0d02c..127276162f7 100644
--- a/packages/typespec-powershell/src/convertor/convertor.ts
+++ b/packages/typespec-powershell/src/convertor/convertor.ts
@@ -365,7 +365,8 @@ function createBodyParameter(psContext: SdkContext, parameter: HttpOperationBody
const paramSchema = parameter.property?.sourceProperty
? getSchemaForType(psContext, parameter.property?.sourceProperty?.type)
: getSchemaForType(psContext, parameter.type)
- const newParameter = new Parameter(parameter.property?.name || "", parameter.property ? getDoc(psContext.program, parameter.property) || "" : "", paramSchema);
+ const paramName = parameter.property ? (getClientNameOverride(psContext, parameter.property) || parameter.property.name || "") : "";
+ const newParameter = new Parameter(paramName, parameter.property ? getDoc(psContext.program, parameter.property) || "" : "", paramSchema);
newParameter.protocol.http = newParameter.protocol.http ?? new Protocol();
newParameter.protocol.http.in = "body";
// ToDo, we need to support x-ms-client is specified.
diff --git a/packages/typespec-powershell/src/utils/modelUtils.ts b/packages/typespec-powershell/src/utils/modelUtils.ts
index bde63c58b76..eb8ed6e6c4d 100644
--- a/packages/typespec-powershell/src/utils/modelUtils.ts
+++ b/packages/typespec-powershell/src/utils/modelUtils.ts
@@ -47,7 +47,7 @@ import {
getLifecycleVisibilityEnum,
getVisibilityForClass,
} from "@typespec/compiler";
-import { SdkContext, isReadOnly, getWireName } from "@azure-tools/typespec-client-generator-core";
+import { SdkContext, isReadOnly, getWireName, getClientNameOverride } from "@azure-tools/typespec-client-generator-core";
import { reportDiagnostic } from "../lib.js";
import { AnySchema, SealedChoiceSchema, ChoiceSchema, ChoiceValue, SchemaType, ArraySchema, Schema, DictionarySchema, ObjectSchema, Discriminator as M4Discriminator, Property, StringSchema, NumberSchema, ConstantSchema, ConstantValue, BooleanSchema } from "@autorest/codemodel";
@@ -521,6 +521,9 @@ function getSchemaForUnion(
//Yabo: how to deal with x-nullable?
const nullable = union.variants.size !== nonNullOptions.length;
schema = getSchemaForType(dpgContext, nonNullOptions[0], options);
+ if (nonNullOptions[0].kind === "Model" && isRecordModelType(dpgContext.program, nonNullOptions[0]) && nonNullOptions[0].name === "Record") {
+ return { ...schema };
+ }
} else {
const values = [];
const [asEnum, _] = getUnionAsEnum(union);
@@ -740,8 +743,9 @@ function getSchemaForModel(
}
const program = dpgContext.program;
- const overridedModelName =
+ const overridedModelName = getClientNameOverride(dpgContext, model) ??
getFriendlyName(program, model) ?? getWireName(dpgContext, model);
+
const fullNamespaceName =
overridedModelName ??
getModelNamespaceName(dpgContext, model.namespace!)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/.gitignore b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/.gitignore
deleted file mode 100644
index 6ec158bd976..00000000000
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/.gitignore
+++ /dev/null
@@ -1,16 +0,0 @@
-bin
-obj
-.vs
-generated
-internal
-exports
-tools
-test/*-TestResults.xml
-license.txt
-/*.ps1
-/*.psd1
-/*.ps1xml
-/*.psm1
-/*.snk
-/*.csproj
-/*.nuspec
\ No newline at end of file
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateExpanded.cs
index ac94a793bd4..377ff5d7c66 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateExpanded.cs
@@ -42,7 +42,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateExpanded : globa
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation evidence resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -70,7 +70,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateExpanded : globa
Description = @"Control id.",
SerializedName = @"controlId",
PossibleTypes = new [] { typeof(string) })]
- public string ControlId { get => _resourceBody.ControlId ?? null; set => _resourceBody.ControlId = value; }
+ public string ControlId { get => _propertiesBody.ControlId ?? null; set => _propertiesBody.ControlId = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -92,7 +92,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateExpanded : globa
SerializedName = @"evidenceType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("File", "AutoCollectedEvidence", "Data")]
- public string EvidenceType { get => _resourceBody.EvidenceType ?? null; set => _resourceBody.EvidenceType = value; }
+ public string EvidenceType { get => _propertiesBody.EvidenceType ?? null; set => _propertiesBody.EvidenceType = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -106,7 +106,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateExpanded : globa
Description = @"Extra data considered as evidence.",
SerializedName = @"extraData",
PossibleTypes = new [] { typeof(string) })]
- public string ExtraData { get => _resourceBody.ExtraData ?? null; set => _resourceBody.ExtraData = value; }
+ public string ExtraData { get => _propertiesBody.ExtraData ?? null; set => _propertiesBody.ExtraData = value; }
/// The path of the file in storage.
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path of the file in storage.")]
@@ -117,7 +117,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateExpanded : globa
Description = @"The path of the file in storage.",
SerializedName = @"filePath",
PossibleTypes = new [] { typeof(string) })]
- public string FilePath { get => _resourceBody.FilePath ?? null; set => _resourceBody.FilePath = value; }
+ public string FilePath { get => _propertiesBody.FilePath ?? null; set => _propertiesBody.FilePath = value; }
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -229,7 +229,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateExpanded : globa
Description = @"Responsibility id.",
SerializedName = @"responsibilityId",
PossibleTypes = new [] { typeof(string) })]
- public string ResponsibilityId { get => _resourceBody.ResponsibilityId ?? null; set => _resourceBody.ResponsibilityId = value; }
+ public string ResponsibilityId { get => _propertiesBody.ResponsibilityId ?? null; set => _propertiesBody.ResponsibilityId = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -460,7 +460,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.EvidenceCreateOrUpdate(ReportName, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.EvidenceCreateOrUpdate(ReportName, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpanded.cs
index 05d5ff9dfa1..fea3c442808 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpanded.cs
@@ -42,7 +42,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpan
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation evidence resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -70,7 +70,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpan
Description = @"Control id.",
SerializedName = @"controlId",
PossibleTypes = new [] { typeof(string) })]
- public string ControlId { get => _resourceBody.ControlId ?? null; set => _resourceBody.ControlId = value; }
+ public string ControlId { get => _propertiesBody.ControlId ?? null; set => _propertiesBody.ControlId = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -92,7 +92,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpan
SerializedName = @"evidenceType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("File", "AutoCollectedEvidence", "Data")]
- public string EvidenceType { get => _resourceBody.EvidenceType ?? null; set => _resourceBody.EvidenceType = value; }
+ public string EvidenceType { get => _propertiesBody.EvidenceType ?? null; set => _propertiesBody.EvidenceType = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -106,7 +106,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpan
Description = @"Extra data considered as evidence.",
SerializedName = @"extraData",
PossibleTypes = new [] { typeof(string) })]
- public string ExtraData { get => _resourceBody.ExtraData ?? null; set => _resourceBody.ExtraData = value; }
+ public string ExtraData { get => _propertiesBody.ExtraData ?? null; set => _propertiesBody.ExtraData = value; }
/// The path of the file in storage.
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path of the file in storage.")]
@@ -117,7 +117,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpan
Description = @"The path of the file in storage.",
SerializedName = @"filePath",
PossibleTypes = new [] { typeof(string) })]
- public string FilePath { get => _resourceBody.FilePath ?? null; set => _resourceBody.FilePath = value; }
+ public string FilePath { get => _propertiesBody.FilePath ?? null; set => _propertiesBody.FilePath = value; }
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -208,7 +208,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityExpan
Description = @"Responsibility id.",
SerializedName = @"responsibilityId",
PossibleTypes = new [] { typeof(string) })]
- public string ResponsibilityId { get => _resourceBody.ResponsibilityId ?? null; set => _resourceBody.ResponsibilityId = value; }
+ public string ResponsibilityId { get => _propertiesBody.ResponsibilityId ?? null; set => _propertiesBody.ResponsibilityId = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -442,7 +442,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.EvidenceCreateOrUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.EvidenceCreateOrUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
else
{
@@ -455,7 +455,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EvidenceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.EvidenceCreateOrUpdate(InputObject.ReportName ?? null, InputObject.EvidenceName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.EvidenceCreateOrUpdate(InputObject.ReportName ?? null, InputObject.EvidenceName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityReportExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityReportExpanded.cs
index 62fcefc3a39..b9e48c36707 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityReportExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationEvidence_CreateViaIdentityReportExpanded.cs
@@ -42,7 +42,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityRepor
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation evidence resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -70,7 +70,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityRepor
Description = @"Control id.",
SerializedName = @"controlId",
PossibleTypes = new [] { typeof(string) })]
- public string ControlId { get => _resourceBody.ControlId ?? null; set => _resourceBody.ControlId = value; }
+ public string ControlId { get => _propertiesBody.ControlId ?? null; set => _propertiesBody.ControlId = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -92,7 +92,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityRepor
SerializedName = @"evidenceType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("File", "AutoCollectedEvidence", "Data")]
- public string EvidenceType { get => _resourceBody.EvidenceType ?? null; set => _resourceBody.EvidenceType = value; }
+ public string EvidenceType { get => _propertiesBody.EvidenceType ?? null; set => _propertiesBody.EvidenceType = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -106,7 +106,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityRepor
Description = @"Extra data considered as evidence.",
SerializedName = @"extraData",
PossibleTypes = new [] { typeof(string) })]
- public string ExtraData { get => _resourceBody.ExtraData ?? null; set => _resourceBody.ExtraData = value; }
+ public string ExtraData { get => _propertiesBody.ExtraData ?? null; set => _propertiesBody.ExtraData = value; }
/// The path of the file in storage.
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path of the file in storage.")]
@@ -117,7 +117,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityRepor
Description = @"The path of the file in storage.",
SerializedName = @"filePath",
PossibleTypes = new [] { typeof(string) })]
- public string FilePath { get => _resourceBody.FilePath ?? null; set => _resourceBody.FilePath = value; }
+ public string FilePath { get => _propertiesBody.FilePath ?? null; set => _propertiesBody.FilePath = value; }
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -223,7 +223,7 @@ public partial class NewAzAppComplianceAutomationEvidence_CreateViaIdentityRepor
Description = @"Responsibility id.",
SerializedName = @"responsibilityId",
PossibleTypes = new [] { typeof(string) })]
- public string ResponsibilityId { get => _resourceBody.ResponsibilityId ?? null; set => _resourceBody.ResponsibilityId = value; }
+ public string ResponsibilityId { get => _propertiesBody.ResponsibilityId ?? null; set => _propertiesBody.ResponsibilityId = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -458,7 +458,7 @@ protected override void ProcessRecord()
if (ReportInputObject?.Id != null)
{
this.ReportInputObject.Id += $"/evidences/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}";
- await this.Client.EvidenceCreateOrUpdateViaIdentity(ReportInputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.EvidenceCreateOrUpdateViaIdentity(ReportInputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
else
{
@@ -467,7 +467,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("ReportInputObject has null value for ReportInputObject.ReportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ReportInputObject) );
}
- await this.Client.EvidenceCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.EvidenceCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateExpanded.cs
index 58d7efe6fb1..3259b9081aa 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateExpanded.cs
@@ -41,7 +41,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
/// A class represent an AppComplianceAutomation report resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IReportResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ReportResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IReportResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ReportResource();
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
@@ -130,7 +130,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"A list of comma-separated offerGuids indicates a series of offerGuids that map to the report. For example, ""00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002"" and ""00000000-0000-0000-0000-000000000003"".",
SerializedName = @"offerGuid",
PossibleTypes = new [] { typeof(string) })]
- public string OfferGuid { get => _resourceBody.OfferGuid ?? null; set => _resourceBody.OfferGuid = value; }
+ public string OfferGuid { get => _propertiesBody.OfferGuid ?? null; set => _propertiesBody.OfferGuid = value; }
///
/// The instance of the that the remote call will use.
@@ -163,7 +163,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"List of resource data.",
SerializedName = @"resources",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata[] Resource { get => _resourceBody.Resource?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Resource = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata[] Resource { get => _propertiesBody.Resource?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Resource = (value != null ? new System.Collections.Generic.List(value) : null); }
/// 'bring your own storage' account name
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "'bring your own storage' account name")]
@@ -174,7 +174,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"'bring your own storage' account name",
SerializedName = @"accountName",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoAccountName { get => _resourceBody.StorageInfoAccountName ?? null; set => _resourceBody.StorageInfoAccountName = value; }
+ public string StorageInfoAccountName { get => _propertiesBody.StorageInfoAccountName ?? null; set => _propertiesBody.StorageInfoAccountName = value; }
/// The region of 'bring your own storage' account
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The region of 'bring your own storage' account")]
@@ -185,7 +185,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"The region of 'bring your own storage' account",
SerializedName = @"location",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoLocation { get => _resourceBody.StorageInfoLocation ?? null; set => _resourceBody.StorageInfoLocation = value; }
+ public string StorageInfoLocation { get => _propertiesBody.StorageInfoLocation ?? null; set => _propertiesBody.StorageInfoLocation = value; }
/// The resourceGroup which 'bring your own storage' account belongs to
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resourceGroup which 'bring your own storage' account belongs to")]
@@ -196,7 +196,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"The resourceGroup which 'bring your own storage' account belongs to",
SerializedName = @"resourceGroup",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoResourceGroup { get => _resourceBody.StorageInfoResourceGroup ?? null; set => _resourceBody.StorageInfoResourceGroup = value; }
+ public string StorageInfoResourceGroup { get => _propertiesBody.StorageInfoResourceGroup ?? null; set => _propertiesBody.StorageInfoResourceGroup = value; }
/// The subscription id which 'bring your own storage' account belongs to
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The subscription id which 'bring your own storage' account belongs to")]
@@ -207,7 +207,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"The subscription id which 'bring your own storage' account belongs to",
SerializedName = @"subscriptionId",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoSubscriptionId { get => _resourceBody.StorageInfoSubscriptionId ?? null; set => _resourceBody.StorageInfoSubscriptionId = value; }
+ public string StorageInfoSubscriptionId { get => _propertiesBody.StorageInfoSubscriptionId ?? null; set => _propertiesBody.StorageInfoSubscriptionId = value; }
///
/// Report collection trigger time's time zone, the available list can be obtained by executing "Get-TimeZone -ListAvailable"
@@ -221,7 +221,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"Report collection trigger time's time zone, the available list can be obtained by executing ""Get-TimeZone -ListAvailable"" in PowerShell.An example of valid timezone id is ""Pacific Standard Time"".",
SerializedName = @"timeZone",
PossibleTypes = new [] { typeof(string) })]
- public string TimeZone { get => _resourceBody.TimeZone ?? null; set => _resourceBody.TimeZone = value; }
+ public string TimeZone { get => _propertiesBody.TimeZone ?? null; set => _propertiesBody.TimeZone = value; }
/// Report collection trigger time.
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Report collection trigger time.")]
@@ -232,7 +232,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateExpanded : global:
Description = @"Report collection trigger time.",
SerializedName = @"triggerTime",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- public global::System.DateTime TriggerTime { get => _resourceBody.TriggerTime; set => _resourceBody.TriggerTime = value; }
+ public global::System.DateTime TriggerTime { get => _propertiesBody.TriggerTime; set => _propertiesBody.TriggerTime = value; }
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
@@ -293,7 +293,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Cmdlets.NewAzA
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone._resourceBody = this._resourceBody;
+ clone._propertiesBody = this._propertiesBody;
clone.Name = this.Name;
return clone;
}
@@ -514,7 +514,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ReportCreateOrUpdate(Name, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ReportCreateOrUpdate(Name, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateViaIdentityExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateViaIdentityExpanded.cs
index 206b01eba4c..9132d32badb 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateViaIdentityExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationReport_CreateViaIdentityExpanded.cs
@@ -41,7 +41,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
/// A class represent an AppComplianceAutomation report resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IReportResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ReportResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IReportResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ReportResource();
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
@@ -123,7 +123,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"A list of comma-separated offerGuids indicates a series of offerGuids that map to the report. For example, ""00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002"" and ""00000000-0000-0000-0000-000000000003"".",
SerializedName = @"offerGuid",
PossibleTypes = new [] { typeof(string) })]
- public string OfferGuid { get => _resourceBody.OfferGuid ?? null; set => _resourceBody.OfferGuid = value; }
+ public string OfferGuid { get => _propertiesBody.OfferGuid ?? null; set => _propertiesBody.OfferGuid = value; }
///
/// The instance of the that the remote call will use.
@@ -156,7 +156,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"List of resource data.",
SerializedName = @"resources",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata[] Resource { get => _resourceBody.Resource?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Resource = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata[] Resource { get => _propertiesBody.Resource?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Resource = (value != null ? new System.Collections.Generic.List(value) : null); }
/// 'bring your own storage' account name
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "'bring your own storage' account name")]
@@ -167,7 +167,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"'bring your own storage' account name",
SerializedName = @"accountName",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoAccountName { get => _resourceBody.StorageInfoAccountName ?? null; set => _resourceBody.StorageInfoAccountName = value; }
+ public string StorageInfoAccountName { get => _propertiesBody.StorageInfoAccountName ?? null; set => _propertiesBody.StorageInfoAccountName = value; }
/// The region of 'bring your own storage' account
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The region of 'bring your own storage' account")]
@@ -178,7 +178,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"The region of 'bring your own storage' account",
SerializedName = @"location",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoLocation { get => _resourceBody.StorageInfoLocation ?? null; set => _resourceBody.StorageInfoLocation = value; }
+ public string StorageInfoLocation { get => _propertiesBody.StorageInfoLocation ?? null; set => _propertiesBody.StorageInfoLocation = value; }
/// The resourceGroup which 'bring your own storage' account belongs to
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resourceGroup which 'bring your own storage' account belongs to")]
@@ -189,7 +189,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"The resourceGroup which 'bring your own storage' account belongs to",
SerializedName = @"resourceGroup",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoResourceGroup { get => _resourceBody.StorageInfoResourceGroup ?? null; set => _resourceBody.StorageInfoResourceGroup = value; }
+ public string StorageInfoResourceGroup { get => _propertiesBody.StorageInfoResourceGroup ?? null; set => _propertiesBody.StorageInfoResourceGroup = value; }
/// The subscription id which 'bring your own storage' account belongs to
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The subscription id which 'bring your own storage' account belongs to")]
@@ -200,7 +200,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"The subscription id which 'bring your own storage' account belongs to",
SerializedName = @"subscriptionId",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoSubscriptionId { get => _resourceBody.StorageInfoSubscriptionId ?? null; set => _resourceBody.StorageInfoSubscriptionId = value; }
+ public string StorageInfoSubscriptionId { get => _propertiesBody.StorageInfoSubscriptionId ?? null; set => _propertiesBody.StorageInfoSubscriptionId = value; }
///
/// Report collection trigger time's time zone, the available list can be obtained by executing "Get-TimeZone -ListAvailable"
@@ -214,7 +214,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"Report collection trigger time's time zone, the available list can be obtained by executing ""Get-TimeZone -ListAvailable"" in PowerShell.An example of valid timezone id is ""Pacific Standard Time"".",
SerializedName = @"timeZone",
PossibleTypes = new [] { typeof(string) })]
- public string TimeZone { get => _resourceBody.TimeZone ?? null; set => _resourceBody.TimeZone = value; }
+ public string TimeZone { get => _propertiesBody.TimeZone ?? null; set => _propertiesBody.TimeZone = value; }
/// Report collection trigger time.
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Report collection trigger time.")]
@@ -225,7 +225,7 @@ public partial class NewAzAppComplianceAutomationReport_CreateViaIdentityExpande
Description = @"Report collection trigger time.",
SerializedName = @"triggerTime",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- public global::System.DateTime TriggerTime { get => _resourceBody.TriggerTime; set => _resourceBody.TriggerTime = value; }
+ public global::System.DateTime TriggerTime { get => _propertiesBody.TriggerTime; set => _propertiesBody.TriggerTime = value; }
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
@@ -288,7 +288,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Cmdlets.NewAzA
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone._resourceBody = this._resourceBody;
+ clone._propertiesBody = this._propertiesBody;
return clone;
}
@@ -510,7 +510,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.ReportCreateOrUpdateViaIdentity(InputObject.Id, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ReportCreateOrUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
else
{
@@ -519,7 +519,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ReportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.ReportCreateOrUpdate(InputObject.ReportName ?? null, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ReportCreateOrUpdate(InputObject.ReportName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateExpanded.cs
index 2eff969f038..f8c6eae8bf4 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateExpanded.cs
@@ -42,7 +42,7 @@ public partial class NewAzAppComplianceAutomationScopingConfiguration_CreateExpa
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation scoping configuration resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -60,7 +60,7 @@ public partial class NewAzAppComplianceAutomationScopingConfiguration_CreateExpa
Description = @"List of scoping question answers.",
SerializedName = @"answers",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _resourceBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _propertiesBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
@@ -389,7 +389,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ScopingConfigurationCreateOrUpdate(ReportName, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ScopingConfigurationCreateOrUpdate(ReportName, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityExpanded.cs
index b07d8efa880..9e8eb85edaf 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityExpanded.cs
@@ -42,7 +42,7 @@ public partial class NewAzAppComplianceAutomationScopingConfiguration_CreateViaI
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation scoping configuration resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -60,7 +60,7 @@ public partial class NewAzAppComplianceAutomationScopingConfiguration_CreateViaI
Description = @"List of scoping question answers.",
SerializedName = @"answers",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _resourceBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _propertiesBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
@@ -370,7 +370,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(InputObject.Id, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
else
{
@@ -383,7 +383,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ScopingConfigurationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.ScopingConfigurationCreateOrUpdate(InputObject.ReportName ?? null, InputObject.ScopingConfigurationName ?? null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ScopingConfigurationCreateOrUpdate(InputObject.ReportName ?? null, InputObject.ScopingConfigurationName ?? null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityReportExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityReportExpanded.cs
index b62705d078e..29e2d44df24 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityReportExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationScopingConfiguration_CreateViaIdentityReportExpanded.cs
@@ -42,7 +42,7 @@ public partial class NewAzAppComplianceAutomationScopingConfiguration_CreateViaI
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation scoping configuration resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -60,7 +60,7 @@ public partial class NewAzAppComplianceAutomationScopingConfiguration_CreateViaI
Description = @"List of scoping question answers.",
SerializedName = @"answers",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _resourceBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _propertiesBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
@@ -386,7 +386,7 @@ protected override void ProcessRecord()
if (ReportInputObject?.Id != null)
{
this.ReportInputObject.Id += $"/scopingConfigurations/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}";
- await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(ReportInputObject.Id, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(ReportInputObject.Id, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
else
{
@@ -395,7 +395,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("ReportInputObject has null value for ReportInputObject.ReportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ReportInputObject) );
}
- await this.Client.ScopingConfigurationCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ScopingConfigurationCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateExpanded.cs
index d40522aacea..66ce80fbfaf 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateExpanded.cs
@@ -44,7 +44,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation webhook resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -73,7 +73,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
SerializedName = @"contentType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("application/json")]
- public string ContentType { get => _resourceBody.ContentType ?? null; set => _resourceBody.ContentType = value; }
+ public string ContentType { get => _propertiesBody.ContentType ?? null; set => _propertiesBody.ContentType = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -95,7 +95,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
SerializedName = @"enableSslVerification",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string EnableSslVerification { get => _resourceBody.EnableSslVerification ?? null; set => _resourceBody.EnableSslVerification = value; }
+ public string EnableSslVerification { get => _propertiesBody.EnableSslVerification ?? null; set => _propertiesBody.EnableSslVerification = value; }
/// under which event notification should be sent.
[global::System.Management.Automation.AllowEmptyCollection]
@@ -108,7 +108,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
SerializedName = @"events",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("generate_snapshot_success", "generate_snapshot_failed", "assessment_failure", "report_configuration_changes", "report_deletion")]
- public string[] Event { get => _resourceBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -160,7 +160,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
Description = @"webhook payload url",
SerializedName = @"payloadUrl",
PossibleTypes = new [] { typeof(string) })]
- public string PayloadUrl { get => _resourceBody.PayloadUrl ?? null; set => _resourceBody.PayloadUrl = value; }
+ public string PayloadUrl { get => _propertiesBody.PayloadUrl ?? null; set => _propertiesBody.PayloadUrl = value; }
///
/// The instance of the that the remote call will use.
@@ -207,7 +207,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
SerializedName = @"sendAllEvents",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string SendAllEvent { get => _resourceBody.SendAllEvent ?? null; set => _resourceBody.SendAllEvent = value; }
+ public string SendAllEvent { get => _propertiesBody.SendAllEvent ?? null; set => _propertiesBody.SendAllEvent = value; }
/// Webhook status.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Webhook status.")]
@@ -219,7 +219,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
SerializedName = @"status",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("Enabled", "Disabled")]
- public string Status { get => _resourceBody.Status ?? null; set => _resourceBody.Status = value; }
+ public string Status { get => _propertiesBody.Status ?? null; set => _propertiesBody.Status = value; }
/// whether to update webhookKey.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "whether to update webhookKey.")]
@@ -231,7 +231,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
SerializedName = @"updateWebhookKey",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string UpdateWebhookKey { get => _resourceBody.UpdateWebhookKey ?? null; set => _resourceBody.UpdateWebhookKey = value; }
+ public string UpdateWebhookKey { get => _propertiesBody.UpdateWebhookKey ?? null; set => _propertiesBody.UpdateWebhookKey = value; }
///
/// webhook secret token. If not set, this field value is null; otherwise, please set a string value.
@@ -244,7 +244,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateExpanded : global
Description = @"webhook secret token. If not set, this field value is null; otherwise, please set a string value.",
SerializedName = @"webhookKey",
PossibleTypes = new [] { typeof(string) })]
- public string WebhookKey { get => _resourceBody.WebhookKey ?? null; set => _resourceBody.WebhookKey = value; }
+ public string WebhookKey { get => _propertiesBody.WebhookKey ?? null; set => _propertiesBody.WebhookKey = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -475,7 +475,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.WebhookCreateOrUpdate(ReportName, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.WebhookCreateOrUpdate(ReportName, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpanded.cs
index 87442d3a0f3..a8318577657 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpanded.cs
@@ -44,7 +44,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation webhook resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -73,7 +73,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
SerializedName = @"contentType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("application/json")]
- public string ContentType { get => _resourceBody.ContentType ?? null; set => _resourceBody.ContentType = value; }
+ public string ContentType { get => _propertiesBody.ContentType ?? null; set => _propertiesBody.ContentType = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -95,7 +95,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
SerializedName = @"enableSslVerification",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string EnableSslVerification { get => _resourceBody.EnableSslVerification ?? null; set => _resourceBody.EnableSslVerification = value; }
+ public string EnableSslVerification { get => _propertiesBody.EnableSslVerification ?? null; set => _propertiesBody.EnableSslVerification = value; }
/// under which event notification should be sent.
[global::System.Management.Automation.AllowEmptyCollection]
@@ -108,7 +108,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
SerializedName = @"events",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("generate_snapshot_success", "generate_snapshot_failed", "assessment_failure", "report_configuration_changes", "report_deletion")]
- public string[] Event { get => _resourceBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -153,7 +153,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
Description = @"webhook payload url",
SerializedName = @"payloadUrl",
PossibleTypes = new [] { typeof(string) })]
- public string PayloadUrl { get => _resourceBody.PayloadUrl ?? null; set => _resourceBody.PayloadUrl = value; }
+ public string PayloadUrl { get => _propertiesBody.PayloadUrl ?? null; set => _propertiesBody.PayloadUrl = value; }
///
/// The instance of the that the remote call will use.
@@ -186,7 +186,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
SerializedName = @"sendAllEvents",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string SendAllEvent { get => _resourceBody.SendAllEvent ?? null; set => _resourceBody.SendAllEvent = value; }
+ public string SendAllEvent { get => _propertiesBody.SendAllEvent ?? null; set => _propertiesBody.SendAllEvent = value; }
/// Webhook status.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Webhook status.")]
@@ -198,7 +198,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
SerializedName = @"status",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("Enabled", "Disabled")]
- public string Status { get => _resourceBody.Status ?? null; set => _resourceBody.Status = value; }
+ public string Status { get => _propertiesBody.Status ?? null; set => _propertiesBody.Status = value; }
/// whether to update webhookKey.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "whether to update webhookKey.")]
@@ -210,7 +210,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
SerializedName = @"updateWebhookKey",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string UpdateWebhookKey { get => _resourceBody.UpdateWebhookKey ?? null; set => _resourceBody.UpdateWebhookKey = value; }
+ public string UpdateWebhookKey { get => _propertiesBody.UpdateWebhookKey ?? null; set => _propertiesBody.UpdateWebhookKey = value; }
///
/// webhook secret token. If not set, this field value is null; otherwise, please set a string value.
@@ -223,7 +223,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityExpand
Description = @"webhook secret token. If not set, this field value is null; otherwise, please set a string value.",
SerializedName = @"webhookKey",
PossibleTypes = new [] { typeof(string) })]
- public string WebhookKey { get => _resourceBody.WebhookKey ?? null; set => _resourceBody.WebhookKey = value; }
+ public string WebhookKey { get => _propertiesBody.WebhookKey ?? null; set => _propertiesBody.WebhookKey = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -457,7 +457,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.WebhookCreateOrUpdateViaIdentity(InputObject.Id, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.WebhookCreateOrUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
else
{
@@ -470,7 +470,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.WebhookName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.WebhookCreateOrUpdate(InputObject.ReportName ?? null, InputObject.WebhookName ?? null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.WebhookCreateOrUpdate(InputObject.ReportName ?? null, InputObject.WebhookName ?? null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityReportExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityReportExpanded.cs
index 9b6aeacbe1b..a396570f654 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityReportExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/NewAzAppComplianceAutomationWebhook_CreateViaIdentityReportExpanded.cs
@@ -44,7 +44,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation webhook resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -73,7 +73,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
SerializedName = @"contentType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("application/json")]
- public string ContentType { get => _resourceBody.ContentType ?? null; set => _resourceBody.ContentType = value; }
+ public string ContentType { get => _propertiesBody.ContentType ?? null; set => _propertiesBody.ContentType = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -95,7 +95,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
SerializedName = @"enableSslVerification",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string EnableSslVerification { get => _resourceBody.EnableSslVerification ?? null; set => _resourceBody.EnableSslVerification = value; }
+ public string EnableSslVerification { get => _propertiesBody.EnableSslVerification ?? null; set => _propertiesBody.EnableSslVerification = value; }
/// under which event notification should be sent.
[global::System.Management.Automation.AllowEmptyCollection]
@@ -108,7 +108,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
SerializedName = @"events",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("generate_snapshot_success", "generate_snapshot_failed", "assessment_failure", "report_configuration_changes", "report_deletion")]
- public string[] Event { get => _resourceBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -160,7 +160,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
Description = @"webhook payload url",
SerializedName = @"payloadUrl",
PossibleTypes = new [] { typeof(string) })]
- public string PayloadUrl { get => _resourceBody.PayloadUrl ?? null; set => _resourceBody.PayloadUrl = value; }
+ public string PayloadUrl { get => _propertiesBody.PayloadUrl ?? null; set => _propertiesBody.PayloadUrl = value; }
///
/// The instance of the that the remote call will use.
@@ -201,7 +201,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
SerializedName = @"sendAllEvents",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string SendAllEvent { get => _resourceBody.SendAllEvent ?? null; set => _resourceBody.SendAllEvent = value; }
+ public string SendAllEvent { get => _propertiesBody.SendAllEvent ?? null; set => _propertiesBody.SendAllEvent = value; }
/// Webhook status.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Webhook status.")]
@@ -213,7 +213,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
SerializedName = @"status",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("Enabled", "Disabled")]
- public string Status { get => _resourceBody.Status ?? null; set => _resourceBody.Status = value; }
+ public string Status { get => _propertiesBody.Status ?? null; set => _propertiesBody.Status = value; }
/// whether to update webhookKey.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "whether to update webhookKey.")]
@@ -225,7 +225,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
SerializedName = @"updateWebhookKey",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string UpdateWebhookKey { get => _resourceBody.UpdateWebhookKey ?? null; set => _resourceBody.UpdateWebhookKey = value; }
+ public string UpdateWebhookKey { get => _propertiesBody.UpdateWebhookKey ?? null; set => _propertiesBody.UpdateWebhookKey = value; }
///
/// webhook secret token. If not set, this field value is null; otherwise, please set a string value.
@@ -238,7 +238,7 @@ public partial class NewAzAppComplianceAutomationWebhook_CreateViaIdentityReport
Description = @"webhook secret token. If not set, this field value is null; otherwise, please set a string value.",
SerializedName = @"webhookKey",
PossibleTypes = new [] { typeof(string) })]
- public string WebhookKey { get => _resourceBody.WebhookKey ?? null; set => _resourceBody.WebhookKey = value; }
+ public string WebhookKey { get => _propertiesBody.WebhookKey ?? null; set => _propertiesBody.WebhookKey = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -473,7 +473,7 @@ protected override void ProcessRecord()
if (ReportInputObject?.Id != null)
{
this.ReportInputObject.Id += $"/webhooks/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}";
- await this.Client.WebhookCreateOrUpdateViaIdentity(ReportInputObject.Id, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.WebhookCreateOrUpdateViaIdentity(ReportInputObject.Id, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
else
{
@@ -482,7 +482,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("ReportInputObject has null value for ReportInputObject.ReportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ReportInputObject) );
}
- await this.Client.WebhookCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.WebhookCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationEvidence_UpdateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationEvidence_UpdateExpanded.cs
index 5ccf7b948d1..c77e25db0b6 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationEvidence_UpdateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationEvidence_UpdateExpanded.cs
@@ -43,7 +43,7 @@ public partial class SetAzAppComplianceAutomationEvidence_UpdateExpanded : globa
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation evidence resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -71,7 +71,7 @@ public partial class SetAzAppComplianceAutomationEvidence_UpdateExpanded : globa
Description = @"Control id.",
SerializedName = @"controlId",
PossibleTypes = new [] { typeof(string) })]
- public string ControlId { get => _resourceBody.ControlId ?? null; set => _resourceBody.ControlId = value; }
+ public string ControlId { get => _propertiesBody.ControlId ?? null; set => _propertiesBody.ControlId = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -93,7 +93,7 @@ public partial class SetAzAppComplianceAutomationEvidence_UpdateExpanded : globa
SerializedName = @"evidenceType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("File", "AutoCollectedEvidence", "Data")]
- public string EvidenceType { get => _resourceBody.EvidenceType ?? null; set => _resourceBody.EvidenceType = value; }
+ public string EvidenceType { get => _propertiesBody.EvidenceType ?? null; set => _propertiesBody.EvidenceType = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -107,7 +107,7 @@ public partial class SetAzAppComplianceAutomationEvidence_UpdateExpanded : globa
Description = @"Extra data considered as evidence.",
SerializedName = @"extraData",
PossibleTypes = new [] { typeof(string) })]
- public string ExtraData { get => _resourceBody.ExtraData ?? null; set => _resourceBody.ExtraData = value; }
+ public string ExtraData { get => _propertiesBody.ExtraData ?? null; set => _propertiesBody.ExtraData = value; }
/// The path of the file in storage.
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The path of the file in storage.")]
@@ -118,7 +118,7 @@ public partial class SetAzAppComplianceAutomationEvidence_UpdateExpanded : globa
Description = @"The path of the file in storage.",
SerializedName = @"filePath",
PossibleTypes = new [] { typeof(string) })]
- public string FilePath { get => _resourceBody.FilePath ?? null; set => _resourceBody.FilePath = value; }
+ public string FilePath { get => _propertiesBody.FilePath ?? null; set => _propertiesBody.FilePath = value; }
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -230,7 +230,7 @@ public partial class SetAzAppComplianceAutomationEvidence_UpdateExpanded : globa
Description = @"Responsibility id.",
SerializedName = @"responsibilityId",
PossibleTypes = new [] { typeof(string) })]
- public string ResponsibilityId { get => _resourceBody.ResponsibilityId ?? null; set => _resourceBody.ResponsibilityId = value; }
+ public string ResponsibilityId { get => _propertiesBody.ResponsibilityId ?? null; set => _propertiesBody.ResponsibilityId = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -453,7 +453,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.EvidenceCreateOrUpdate(ReportName, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.EvidenceCreateOrUpdate(ReportName, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationReport_UpdateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationReport_UpdateExpanded.cs
index a437f57d99f..31333e788f1 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationReport_UpdateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationReport_UpdateExpanded.cs
@@ -42,7 +42,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
/// A class represent an AppComplianceAutomation report resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IReportResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ReportResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IReportResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ReportResource();
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
@@ -131,7 +131,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"A list of comma-separated offerGuids indicates a series of offerGuids that map to the report. For example, ""00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002"" and ""00000000-0000-0000-0000-000000000003"".",
SerializedName = @"offerGuid",
PossibleTypes = new [] { typeof(string) })]
- public string OfferGuid { get => _resourceBody.OfferGuid ?? null; set => _resourceBody.OfferGuid = value; }
+ public string OfferGuid { get => _propertiesBody.OfferGuid ?? null; set => _propertiesBody.OfferGuid = value; }
///
/// The instance of the that the remote call will use.
@@ -164,7 +164,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"List of resource data.",
SerializedName = @"resources",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata[] Resource { get => _resourceBody.Resource?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Resource = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IResourceMetadata[] Resource { get => _propertiesBody.Resource?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Resource = (value != null ? new System.Collections.Generic.List(value) : null); }
/// 'bring your own storage' account name
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "'bring your own storage' account name")]
@@ -175,7 +175,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"'bring your own storage' account name",
SerializedName = @"accountName",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoAccountName { get => _resourceBody.StorageInfoAccountName ?? null; set => _resourceBody.StorageInfoAccountName = value; }
+ public string StorageInfoAccountName { get => _propertiesBody.StorageInfoAccountName ?? null; set => _propertiesBody.StorageInfoAccountName = value; }
/// The region of 'bring your own storage' account
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The region of 'bring your own storage' account")]
@@ -186,7 +186,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"The region of 'bring your own storage' account",
SerializedName = @"location",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoLocation { get => _resourceBody.StorageInfoLocation ?? null; set => _resourceBody.StorageInfoLocation = value; }
+ public string StorageInfoLocation { get => _propertiesBody.StorageInfoLocation ?? null; set => _propertiesBody.StorageInfoLocation = value; }
/// The resourceGroup which 'bring your own storage' account belongs to
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resourceGroup which 'bring your own storage' account belongs to")]
@@ -197,7 +197,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"The resourceGroup which 'bring your own storage' account belongs to",
SerializedName = @"resourceGroup",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoResourceGroup { get => _resourceBody.StorageInfoResourceGroup ?? null; set => _resourceBody.StorageInfoResourceGroup = value; }
+ public string StorageInfoResourceGroup { get => _propertiesBody.StorageInfoResourceGroup ?? null; set => _propertiesBody.StorageInfoResourceGroup = value; }
/// The subscription id which 'bring your own storage' account belongs to
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The subscription id which 'bring your own storage' account belongs to")]
@@ -208,7 +208,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"The subscription id which 'bring your own storage' account belongs to",
SerializedName = @"subscriptionId",
PossibleTypes = new [] { typeof(string) })]
- public string StorageInfoSubscriptionId { get => _resourceBody.StorageInfoSubscriptionId ?? null; set => _resourceBody.StorageInfoSubscriptionId = value; }
+ public string StorageInfoSubscriptionId { get => _propertiesBody.StorageInfoSubscriptionId ?? null; set => _propertiesBody.StorageInfoSubscriptionId = value; }
///
/// Report collection trigger time's time zone, the available list can be obtained by executing "Get-TimeZone -ListAvailable"
@@ -222,7 +222,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"Report collection trigger time's time zone, the available list can be obtained by executing ""Get-TimeZone -ListAvailable"" in PowerShell.An example of valid timezone id is ""Pacific Standard Time"".",
SerializedName = @"timeZone",
PossibleTypes = new [] { typeof(string) })]
- public string TimeZone { get => _resourceBody.TimeZone ?? null; set => _resourceBody.TimeZone = value; }
+ public string TimeZone { get => _propertiesBody.TimeZone ?? null; set => _propertiesBody.TimeZone = value; }
/// Report collection trigger time.
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Report collection trigger time.")]
@@ -233,7 +233,7 @@ public partial class SetAzAppComplianceAutomationReport_UpdateExpanded : global:
Description = @"Report collection trigger time.",
SerializedName = @"triggerTime",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- public global::System.DateTime TriggerTime { get => _resourceBody.TriggerTime; set => _resourceBody.TriggerTime = value; }
+ public global::System.DateTime TriggerTime { get => _propertiesBody.TriggerTime; set => _propertiesBody.TriggerTime = value; }
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
@@ -294,7 +294,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Cmdlets.SetAzA
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone._resourceBody = this._resourceBody;
+ clone._propertiesBody = this._propertiesBody;
clone.Name = this.Name;
return clone;
}
@@ -507,7 +507,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ReportCreateOrUpdate(Name, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ReportCreateOrUpdate(Name, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs
index a8414bba081..404f4b9d33c 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs
@@ -43,7 +43,7 @@ public partial class SetAzAppComplianceAutomationScopingConfiguration_UpdateExpa
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation scoping configuration resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -61,7 +61,7 @@ public partial class SetAzAppComplianceAutomationScopingConfiguration_UpdateExpa
Description = @"List of scoping question answers.",
SerializedName = @"answers",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _resourceBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _propertiesBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
@@ -381,7 +381,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.ScopingConfigurationCreateOrUpdate(ReportName, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.ScopingConfigurationCreateOrUpdate(ReportName, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationWebhook_UpdateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationWebhook_UpdateExpanded.cs
index b93972d9831..196b7ec9a22 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationWebhook_UpdateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/SetAzAppComplianceAutomationWebhook_UpdateExpanded.cs
@@ -45,7 +45,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation webhook resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IWebhookResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.WebhookResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -74,7 +74,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
SerializedName = @"contentType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("application/json")]
- public string ContentType { get => _resourceBody.ContentType ?? null; set => _resourceBody.ContentType = value; }
+ public string ContentType { get => _propertiesBody.ContentType ?? null; set => _propertiesBody.ContentType = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -96,7 +96,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
SerializedName = @"enableSslVerification",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string EnableSslVerification { get => _resourceBody.EnableSslVerification ?? null; set => _resourceBody.EnableSslVerification = value; }
+ public string EnableSslVerification { get => _propertiesBody.EnableSslVerification ?? null; set => _propertiesBody.EnableSslVerification = value; }
/// under which event notification should be sent.
[global::System.Management.Automation.AllowEmptyCollection]
@@ -109,7 +109,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
SerializedName = @"events",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("generate_snapshot_success", "generate_snapshot_failed", "assessment_failure", "report_configuration_changes", "report_deletion")]
- public string[] Event { get => _resourceBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -161,7 +161,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
Description = @"webhook payload url",
SerializedName = @"payloadUrl",
PossibleTypes = new [] { typeof(string) })]
- public string PayloadUrl { get => _resourceBody.PayloadUrl ?? null; set => _resourceBody.PayloadUrl = value; }
+ public string PayloadUrl { get => _propertiesBody.PayloadUrl ?? null; set => _propertiesBody.PayloadUrl = value; }
///
/// The instance of the that the remote call will use.
@@ -208,7 +208,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
SerializedName = @"sendAllEvents",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string SendAllEvent { get => _resourceBody.SendAllEvent ?? null; set => _resourceBody.SendAllEvent = value; }
+ public string SendAllEvent { get => _propertiesBody.SendAllEvent ?? null; set => _propertiesBody.SendAllEvent = value; }
/// Webhook status.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Webhook status.")]
@@ -220,7 +220,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
SerializedName = @"status",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("Enabled", "Disabled")]
- public string Status { get => _resourceBody.Status ?? null; set => _resourceBody.Status = value; }
+ public string Status { get => _propertiesBody.Status ?? null; set => _propertiesBody.Status = value; }
/// whether to update webhookKey.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "whether to update webhookKey.")]
@@ -232,7 +232,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
SerializedName = @"updateWebhookKey",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("true", "false")]
- public string UpdateWebhookKey { get => _resourceBody.UpdateWebhookKey ?? null; set => _resourceBody.UpdateWebhookKey = value; }
+ public string UpdateWebhookKey { get => _propertiesBody.UpdateWebhookKey ?? null; set => _propertiesBody.UpdateWebhookKey = value; }
///
/// webhook secret token. If not set, this field value is null; otherwise, please set a string value.
@@ -245,7 +245,7 @@ public partial class SetAzAppComplianceAutomationWebhook_UpdateExpanded : global
Description = @"webhook secret token. If not set, this field value is null; otherwise, please set a string value.",
SerializedName = @"webhookKey",
PossibleTypes = new [] { typeof(string) })]
- public string WebhookKey { get => _resourceBody.WebhookKey ?? null; set => _resourceBody.WebhookKey = value; }
+ public string WebhookKey { get => _propertiesBody.WebhookKey ?? null; set => _propertiesBody.WebhookKey = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -468,7 +468,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.WebhookCreateOrUpdate(ReportName, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
+ await this.Client.WebhookCreateOrUpdate(ReportName, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateExpanded.cs
index 1777533676c..72cd6884b71 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateExpanded.cs
@@ -42,7 +42,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateExpanded : gl
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation evidence resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -70,7 +70,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateExpanded : gl
Description = @"Control id.",
SerializedName = @"controlId",
PossibleTypes = new [] { typeof(string) })]
- public string ControlId { get => _resourceBody.ControlId ?? null; set => _resourceBody.ControlId = value; }
+ public string ControlId { get => _propertiesBody.ControlId ?? null; set => _propertiesBody.ControlId = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -92,7 +92,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateExpanded : gl
SerializedName = @"evidenceType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("File", "AutoCollectedEvidence", "Data")]
- public string EvidenceType { get => _resourceBody.EvidenceType ?? null; set => _resourceBody.EvidenceType = value; }
+ public string EvidenceType { get => _propertiesBody.EvidenceType ?? null; set => _propertiesBody.EvidenceType = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -106,7 +106,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateExpanded : gl
Description = @"Extra data considered as evidence.",
SerializedName = @"extraData",
PossibleTypes = new [] { typeof(string) })]
- public string ExtraData { get => _resourceBody.ExtraData ?? null; set => _resourceBody.ExtraData = value; }
+ public string ExtraData { get => _propertiesBody.ExtraData ?? null; set => _propertiesBody.ExtraData = value; }
/// The path of the file in storage.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The path of the file in storage.")]
@@ -117,7 +117,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateExpanded : gl
Description = @"The path of the file in storage.",
SerializedName = @"filePath",
PossibleTypes = new [] { typeof(string) })]
- public string FilePath { get => _resourceBody.FilePath ?? null; set => _resourceBody.FilePath = value; }
+ public string FilePath { get => _propertiesBody.FilePath ?? null; set => _propertiesBody.FilePath = value; }
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -229,7 +229,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateExpanded : gl
Description = @"Responsibility id.",
SerializedName = @"responsibilityId",
PossibleTypes = new [] { typeof(string) })]
- public string ResponsibilityId { get => _resourceBody.ResponsibilityId ?? null; set => _resourceBody.ResponsibilityId = value; }
+ public string ResponsibilityId { get => _propertiesBody.ResponsibilityId ?? null; set => _propertiesBody.ResponsibilityId = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -452,9 +452,9 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- _resourceBody = await this.Client.EvidenceGetWithResult(ReportName, Name, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.EvidenceCreateOrUpdate(ReportName, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.EvidenceGetWithResult(ReportName, Name, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.EvidenceCreateOrUpdate(ReportName, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
@@ -486,7 +486,7 @@ public UpdateAzAppComplianceAutomationEvidence_UpdateExpanded()
}
- private void Update_resourceBody()
+ private void Update_propertiesBody()
{
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("EvidenceType")))
{
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityExpanded.cs
index 7771ba9f93f..65a88b44a6b 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityExpanded.cs
@@ -42,7 +42,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityEx
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation evidence resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -70,7 +70,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityEx
Description = @"Control id.",
SerializedName = @"controlId",
PossibleTypes = new [] { typeof(string) })]
- public string ControlId { get => _resourceBody.ControlId ?? null; set => _resourceBody.ControlId = value; }
+ public string ControlId { get => _propertiesBody.ControlId ?? null; set => _propertiesBody.ControlId = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -92,7 +92,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityEx
SerializedName = @"evidenceType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("File", "AutoCollectedEvidence", "Data")]
- public string EvidenceType { get => _resourceBody.EvidenceType ?? null; set => _resourceBody.EvidenceType = value; }
+ public string EvidenceType { get => _propertiesBody.EvidenceType ?? null; set => _propertiesBody.EvidenceType = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -106,7 +106,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityEx
Description = @"Extra data considered as evidence.",
SerializedName = @"extraData",
PossibleTypes = new [] { typeof(string) })]
- public string ExtraData { get => _resourceBody.ExtraData ?? null; set => _resourceBody.ExtraData = value; }
+ public string ExtraData { get => _propertiesBody.ExtraData ?? null; set => _propertiesBody.ExtraData = value; }
/// The path of the file in storage.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The path of the file in storage.")]
@@ -117,7 +117,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityEx
Description = @"The path of the file in storage.",
SerializedName = @"filePath",
PossibleTypes = new [] { typeof(string) })]
- public string FilePath { get => _resourceBody.FilePath ?? null; set => _resourceBody.FilePath = value; }
+ public string FilePath { get => _propertiesBody.FilePath ?? null; set => _propertiesBody.FilePath = value; }
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -208,7 +208,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityEx
Description = @"Responsibility id.",
SerializedName = @"responsibilityId",
PossibleTypes = new [] { typeof(string) })]
- public string ResponsibilityId { get => _resourceBody.ResponsibilityId ?? null; set => _resourceBody.ResponsibilityId = value; }
+ public string ResponsibilityId { get => _propertiesBody.ResponsibilityId ?? null; set => _propertiesBody.ResponsibilityId = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -433,9 +433,9 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- _resourceBody = await this.Client.EvidenceGetViaIdentityWithResult(InputObject.Id, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.EvidenceCreateOrUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.EvidenceGetViaIdentityWithResult(InputObject.Id, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.EvidenceCreateOrUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
else
{
@@ -448,9 +448,9 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EvidenceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- _resourceBody = await this.Client.EvidenceGetWithResult(InputObject.ReportName ?? null, InputObject.EvidenceName ?? null, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.EvidenceCreateOrUpdate(InputObject.ReportName ?? null, InputObject.EvidenceName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.EvidenceGetWithResult(InputObject.ReportName ?? null, InputObject.EvidenceName ?? null, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.EvidenceCreateOrUpdate(InputObject.ReportName ?? null, InputObject.EvidenceName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -484,7 +484,7 @@ public UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityExpanded()
}
- private void Update_resourceBody()
+ private void Update_propertiesBody()
{
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("EvidenceType")))
{
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityReportExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityReportExpanded.cs
index 9e290eb2b82..8a24548b2c3 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityReportExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityReportExpanded.cs
@@ -42,7 +42,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityRe
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation evidence resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IEvidenceResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.EvidenceResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -70,7 +70,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityRe
Description = @"Control id.",
SerializedName = @"controlId",
PossibleTypes = new [] { typeof(string) })]
- public string ControlId { get => _resourceBody.ControlId ?? null; set => _resourceBody.ControlId = value; }
+ public string ControlId { get => _propertiesBody.ControlId ?? null; set => _propertiesBody.ControlId = value; }
///
/// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
@@ -92,7 +92,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityRe
SerializedName = @"evidenceType",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.PSArgumentCompleterAttribute("File", "AutoCollectedEvidence", "Data")]
- public string EvidenceType { get => _resourceBody.EvidenceType ?? null; set => _resourceBody.EvidenceType = value; }
+ public string EvidenceType { get => _propertiesBody.EvidenceType ?? null; set => _propertiesBody.EvidenceType = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -106,7 +106,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityRe
Description = @"Extra data considered as evidence.",
SerializedName = @"extraData",
PossibleTypes = new [] { typeof(string) })]
- public string ExtraData { get => _resourceBody.ExtraData ?? null; set => _resourceBody.ExtraData = value; }
+ public string ExtraData { get => _propertiesBody.ExtraData ?? null; set => _propertiesBody.ExtraData = value; }
/// The path of the file in storage.
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The path of the file in storage.")]
@@ -117,7 +117,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityRe
Description = @"The path of the file in storage.",
SerializedName = @"filePath",
PossibleTypes = new [] { typeof(string) })]
- public string FilePath { get => _resourceBody.FilePath ?? null; set => _resourceBody.FilePath = value; }
+ public string FilePath { get => _propertiesBody.FilePath ?? null; set => _propertiesBody.FilePath = value; }
/// SendAsync Pipeline Steps to be appended to the front of the pipeline
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -223,7 +223,7 @@ public partial class UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityRe
Description = @"Responsibility id.",
SerializedName = @"responsibilityId",
PossibleTypes = new [] { typeof(string) })]
- public string ResponsibilityId { get => _resourceBody.ResponsibilityId ?? null; set => _resourceBody.ResponsibilityId = value; }
+ public string ResponsibilityId { get => _propertiesBody.ResponsibilityId ?? null; set => _propertiesBody.ResponsibilityId = value; }
///
/// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what
@@ -449,9 +449,9 @@ protected override void ProcessRecord()
if (ReportInputObject?.Id != null)
{
this.ReportInputObject.Id += $"/evidences/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}";
- _resourceBody = await this.Client.EvidenceGetViaIdentityWithResult(ReportInputObject.Id, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.EvidenceCreateOrUpdateViaIdentity(ReportInputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.EvidenceGetViaIdentityWithResult(ReportInputObject.Id, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.EvidenceCreateOrUpdateViaIdentity(ReportInputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
else
{
@@ -460,9 +460,9 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("ReportInputObject has null value for ReportInputObject.ReportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ReportInputObject) );
}
- _resourceBody = await this.Client.EvidenceGetWithResult(ReportInputObject.ReportName ?? null, Name, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.EvidenceCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.EvidenceGetWithResult(ReportInputObject.ReportName ?? null, Name, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.EvidenceCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, this.InvocationInformation.BoundParameters.ContainsKey("OfferGuid") ? OfferGuid : null, this.InvocationInformation.BoundParameters.ContainsKey("ReportCreatorTenantId") ? ReportCreatorTenantId : null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -496,7 +496,7 @@ public UpdateAzAppComplianceAutomationEvidence_UpdateViaIdentityReportExpanded()
}
- private void Update_resourceBody()
+ private void Update_propertiesBody()
{
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("EvidenceType")))
{
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs
index 0682f81a527..b921c09bdf6 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateExpanded.cs
@@ -42,7 +42,7 @@ public partial class UpdateAzAppComplianceAutomationScopingConfiguration_UpdateE
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation scoping configuration resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -60,7 +60,7 @@ public partial class UpdateAzAppComplianceAutomationScopingConfiguration_UpdateE
Description = @"List of scoping question answers.",
SerializedName = @"answers",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _resourceBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _propertiesBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
@@ -380,9 +380,9 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- _resourceBody = await this.Client.ScopingConfigurationGetWithResult(ReportName, Name, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.ScopingConfigurationCreateOrUpdate(ReportName, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.ScopingConfigurationGetWithResult(ReportName, Name, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.ScopingConfigurationCreateOrUpdate(ReportName, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.UndeclaredResponseException urexception)
@@ -415,7 +415,7 @@ public UpdateAzAppComplianceAutomationScopingConfiguration_UpdateExpanded()
}
- private void Update_resourceBody()
+ private void Update_propertiesBody()
{
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Answer")))
{
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityExpanded.cs
index cd27c5b28ef..e41b0f288a2 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityExpanded.cs
@@ -42,7 +42,7 @@ public partial class UpdateAzAppComplianceAutomationScopingConfiguration_UpdateV
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation scoping configuration resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -60,7 +60,7 @@ public partial class UpdateAzAppComplianceAutomationScopingConfiguration_UpdateV
Description = @"List of scoping question answers.",
SerializedName = @"answers",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _resourceBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _propertiesBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
@@ -361,9 +361,9 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- _resourceBody = await this.Client.ScopingConfigurationGetViaIdentityWithResult(InputObject.Id, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(InputObject.Id, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.ScopingConfigurationGetViaIdentityWithResult(InputObject.Id, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
else
{
@@ -376,9 +376,9 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ScopingConfigurationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- _resourceBody = await this.Client.ScopingConfigurationGetWithResult(InputObject.ReportName ?? null, InputObject.ScopingConfigurationName ?? null, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.ScopingConfigurationCreateOrUpdate(InputObject.ReportName ?? null, InputObject.ScopingConfigurationName ?? null, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.ScopingConfigurationGetWithResult(InputObject.ReportName ?? null, InputObject.ScopingConfigurationName ?? null, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.ScopingConfigurationCreateOrUpdate(InputObject.ReportName ?? null, InputObject.ScopingConfigurationName ?? null, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -412,7 +412,7 @@ public UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityExpa
}
- private void Update_resourceBody()
+ private void Update_propertiesBody()
{
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Answer")))
{
diff --git a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityReportExpanded.cs b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityReportExpanded.cs
index ff68c6b797a..dfbf4a887a3 100644
--- a/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityReportExpanded.cs
+++ b/tests-upgrade/tests-emitter/AppComplianceAutomation.Management/target/generated/cmdlets/UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityReportExpanded.cs
@@ -42,7 +42,7 @@ public partial class UpdateAzAppComplianceAutomationScopingConfiguration_UpdateV
private object _firstResponse = null;
/// A class represent an AppComplianceAutomation scoping configuration resource.
- private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingConfigurationResource _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.ScopingConfigurationResource();
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
@@ -60,7 +60,7 @@ public partial class UpdateAzAppComplianceAutomationScopingConfiguration_UpdateV
Description = @"List of scoping question answers.",
SerializedName = @"answers",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer) })]
- public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _resourceBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Models.IScopingAnswer[] Answer { get => _propertiesBody.Answer?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Answer = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
@@ -377,9 +377,9 @@ protected override void ProcessRecord()
if (ReportInputObject?.Id != null)
{
this.ReportInputObject.Id += $"/scopingConfigurations/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}";
- _resourceBody = await this.Client.ScopingConfigurationGetViaIdentityWithResult(ReportInputObject.Id, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(ReportInputObject.Id, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.ScopingConfigurationGetViaIdentityWithResult(ReportInputObject.Id, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.ScopingConfigurationCreateOrUpdateViaIdentity(ReportInputObject.Id, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
else
{
@@ -388,9 +388,9 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("ReportInputObject has null value for ReportInputObject.ReportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ReportInputObject) );
}
- _resourceBody = await this.Client.ScopingConfigurationGetWithResult(ReportInputObject.ReportName ?? null, Name, this, Pipeline);
- this.Update_resourceBody();
- await this.Client.ScopingConfigurationCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, _resourceBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
+ _propertiesBody = await this.Client.ScopingConfigurationGetWithResult(ReportInputObject.ReportName ?? null, Name, this, Pipeline);
+ this.Update_propertiesBody();
+ await this.Client.ScopingConfigurationCreateOrUpdate(ReportInputObject.ReportName ?? null, Name, _propertiesBody, onOk, onCreated, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.SerializationMode.IncludeUpdate);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
@@ -424,7 +424,7 @@ public UpdateAzAppComplianceAutomationScopingConfiguration_UpdateViaIdentityRepo
}
- private void Update_resourceBody()
+ private void Update_propertiesBody()
{
if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Answer")))
{
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/.gitignore b/tests-upgrade/tests-emitter/Sphere.Management/target/.gitignore
deleted file mode 100644
index 6ec158bd976..00000000000
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/.gitignore
+++ /dev/null
@@ -1,16 +0,0 @@
-bin
-obj
-.vs
-generated
-internal
-exports
-tools
-test/*-TestResults.xml
-license.txt
-/*.ps1
-/*.psd1
-/*.ps1xml
-/*.psm1
-/*.snk
-/*.csproj
-/*.nuspec
\ No newline at end of file
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCatalogDeviceGroup_ListExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCatalogDeviceGroup_ListExpanded.cs
index 60fe144a762..12989b14fe2 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCatalogDeviceGroup_ListExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCatalogDeviceGroup_ListExpanded.cs
@@ -30,9 +30,6 @@ public partial class GetAzSphereCatalogDeviceGroup_ListExpanded : global::System
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request of the action to list device groups for a catalog.
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IListDeviceGroupsRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ListDeviceGroupsRequest();
-
///
/// The for this operation.
///
@@ -47,6 +44,9 @@ public partial class GetAzSphereCatalogDeviceGroup_ListExpanded : global::System
/// A flag to tell whether it is the first onOK call.
private bool _isFirst = true;
+ /// Request of the action to list device groups for a catalog.
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IListDeviceGroupsRequest _listDeviceGroupsRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ListDeviceGroupsRequest();
+
/// Link to retrieve next page.
private string _nextLink;
@@ -100,7 +100,7 @@ public partial class GetAzSphereCatalogDeviceGroup_ListExpanded : global::System
Description = @"Device Group name.",
SerializedName = @"deviceGroupName",
PossibleTypes = new [] { typeof(string) })]
- public string DeviceGroupName { get => _body.DeviceGroupName ?? null; set => _body.DeviceGroupName = value; }
+ public string DeviceGroupName { get => _listDeviceGroupsRequestBody.DeviceGroupName ?? null; set => _listDeviceGroupsRequestBody.DeviceGroupName = value; }
/// Accessor for extensibleParameters.
public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; }
@@ -457,7 +457,7 @@ protected override void ProcessRecord()
foreach( var SubscriptionId in this.SubscriptionId )
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.CatalogsListDeviceGroups(SubscriptionId, ResourceGroupName, CatalogName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Skip") ? Skip : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Maxpagesize") ? Maxpagesize : default(int?), _body, onOk, onDefault, this, Pipeline);
+ await this.Client.CatalogsListDeviceGroups(SubscriptionId, ResourceGroupName, CatalogName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Skip") ? Skip : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Maxpagesize") ? Maxpagesize : default(int?), _listDeviceGroupsRequestBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
}
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveExpanded.cs
index 81d63891df7..8abb4b97259 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveExpanded.cs
@@ -30,9 +30,6 @@ public partial class GetAzSphereCertificateProof_RetrieveExpanded : global::Syst
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request for the proof of possession nonce
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProofOfPossessionNonceRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProofOfPossessionNonceRequest();
-
///
/// The for this operation.
///
@@ -44,6 +41,9 @@ public partial class GetAzSphereCertificateProof_RetrieveExpanded : global::Syst
/// A buffer to record first returned object in response.
private object _firstResponse = null;
+ /// Request for the proof of possession nonce
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProofOfPossessionNonceRequest _proofOfPossessionNonceRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProofOfPossessionNonceRequest();
+
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
/// Two means multiple returned objects in response.
@@ -125,7 +125,7 @@ public partial class GetAzSphereCertificateProof_RetrieveExpanded : global::Syst
Description = @"The proof of possession nonce",
SerializedName = @"proofOfPossessionNonce",
PossibleTypes = new [] { typeof(string) })]
- public string ProofOfPossessionNonce { get => _body.ProofOfPossessionNonce ?? null; set => _body.ProofOfPossessionNonce = value; }
+ public string ProofOfPossessionNonce { get => _proofOfPossessionNonceRequestBody.ProofOfPossessionNonce ?? null; set => _proofOfPossessionNonceRequestBody.ProofOfPossessionNonce = value; }
/// The URI for the proxy server to use
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")]
@@ -411,7 +411,7 @@ protected override void ProcessRecord()
foreach( var SubscriptionId in this.SubscriptionId )
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.CertificatesRetrieveProofOfPossessionNonce(SubscriptionId, ResourceGroupName, CatalogName, SerialNumber, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.CertificatesRetrieveProofOfPossessionNonce(SubscriptionId, ResourceGroupName, CatalogName, SerialNumber, _proofOfPossessionNonceRequestBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
}
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityCatalogExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityCatalogExpanded.cs
index af5101cec64..8e1cd17db63 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityCatalogExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityCatalogExpanded.cs
@@ -30,9 +30,6 @@ public partial class GetAzSphereCertificateProof_RetrieveViaIdentityCatalogExpan
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request for the proof of possession nonce
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProofOfPossessionNonceRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProofOfPossessionNonceRequest();
-
///
/// The for this operation.
///
@@ -44,6 +41,9 @@ public partial class GetAzSphereCertificateProof_RetrieveViaIdentityCatalogExpan
/// A buffer to record first returned object in response.
private object _firstResponse = null;
+ /// Request for the proof of possession nonce
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProofOfPossessionNonceRequest _proofOfPossessionNonceRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProofOfPossessionNonceRequest();
+
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
/// Two means multiple returned objects in response.
@@ -119,7 +119,7 @@ public partial class GetAzSphereCertificateProof_RetrieveViaIdentityCatalogExpan
Description = @"The proof of possession nonce",
SerializedName = @"proofOfPossessionNonce",
PossibleTypes = new [] { typeof(string) })]
- public string ProofOfPossessionNonce { get => _body.ProofOfPossessionNonce ?? null; set => _body.ProofOfPossessionNonce = value; }
+ public string ProofOfPossessionNonce { get => _proofOfPossessionNonceRequestBody.ProofOfPossessionNonce ?? null; set => _proofOfPossessionNonceRequestBody.ProofOfPossessionNonce = value; }
/// The URI for the proxy server to use
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")]
@@ -374,7 +374,7 @@ protected override void ProcessRecord()
if (CatalogInputObject?.Id != null)
{
this.CatalogInputObject.Id += $"/certificates/{(global::System.Uri.EscapeDataString(this.SerialNumber.ToString()))}";
- await this.Client.CertificatesRetrieveProofOfPossessionNonceViaIdentity(CatalogInputObject.Id, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.CertificatesRetrieveProofOfPossessionNonceViaIdentity(CatalogInputObject.Id, _proofOfPossessionNonceRequestBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -391,7 +391,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("CatalogInputObject has null value for CatalogInputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, CatalogInputObject) );
}
- await this.Client.CertificatesRetrieveProofOfPossessionNonce(CatalogInputObject.SubscriptionId ?? null, CatalogInputObject.ResourceGroupName ?? null, CatalogInputObject.CatalogName ?? null, SerialNumber, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.CertificatesRetrieveProofOfPossessionNonce(CatalogInputObject.SubscriptionId ?? null, CatalogInputObject.ResourceGroupName ?? null, CatalogInputObject.CatalogName ?? null, SerialNumber, _proofOfPossessionNonceRequestBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityExpanded.cs
index 108ccfa3ed9..ea7655c87f9 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/GetAzSphereCertificateProof_RetrieveViaIdentityExpanded.cs
@@ -30,9 +30,6 @@ public partial class GetAzSphereCertificateProof_RetrieveViaIdentityExpanded : g
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request for the proof of possession nonce
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProofOfPossessionNonceRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProofOfPossessionNonceRequest();
-
///
/// The for this operation.
///
@@ -44,6 +41,9 @@ public partial class GetAzSphereCertificateProof_RetrieveViaIdentityExpanded : g
/// A buffer to record first returned object in response.
private object _firstResponse = null;
+ /// Request for the proof of possession nonce
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IProofOfPossessionNonceRequest _proofOfPossessionNonceRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ProofOfPossessionNonceRequest();
+
///
/// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
/// Two means multiple returned objects in response.
@@ -119,7 +119,7 @@ public partial class GetAzSphereCertificateProof_RetrieveViaIdentityExpanded : g
Description = @"The proof of possession nonce",
SerializedName = @"proofOfPossessionNonce",
PossibleTypes = new [] { typeof(string) })]
- public string ProofOfPossessionNonce { get => _body.ProofOfPossessionNonce ?? null; set => _body.ProofOfPossessionNonce = value; }
+ public string ProofOfPossessionNonce { get => _proofOfPossessionNonceRequestBody.ProofOfPossessionNonce ?? null; set => _proofOfPossessionNonceRequestBody.ProofOfPossessionNonce = value; }
/// The URI for the proxy server to use
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")]
@@ -356,7 +356,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.CertificatesRetrieveProofOfPossessionNonceViaIdentity(InputObject.Id, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.CertificatesRetrieveProofOfPossessionNonceViaIdentity(InputObject.Id, _proofOfPossessionNonceRequestBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -377,7 +377,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SerialNumber"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.CertificatesRetrieveProofOfPossessionNonce(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.CatalogName ?? null, InputObject.SerialNumber ?? null, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.CertificatesRetrieveProofOfPossessionNonce(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.CatalogName ?? null, InputObject.SerialNumber ?? null, _proofOfPossessionNonceRequestBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs
index f8747b96cb7..db4e058c23f 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateExpanded.cs
@@ -33,9 +33,6 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateExpanded : global:
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request of the action to create a signed device capability image
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
-
///
/// The for this operation.
///
@@ -44,6 +41,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateExpanded : global:
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
+ /// Request of the action to create a signed device capability image
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
+
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)]
@@ -68,7 +68,7 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateExpanded : global:
SerializedName = @"capabilities",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.PSArgumentCompleterAttribute("ApplicationDevelopment", "FieldServicing")]
- public string[] Capability { get => _body.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _body.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Capability { get => _generateDeviceCapabilityRequestBody.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _generateDeviceCapabilityRequestBody.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Backing field for property.
private string _catalogName;
@@ -286,7 +286,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone._body = this._body;
+ clone._generateDeviceCapabilityRequestBody = this._generateDeviceCapabilityRequestBody;
clone.SubscriptionId = this.SubscriptionId;
clone.ResourceGroupName = this.ResourceGroupName;
clone.CatalogName = this.CatalogName;
@@ -512,7 +512,7 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.DevicesGenerateCapabilityImage(SubscriptionId, ResourceGroupName, CatalogName, ProductName, DeviceGroupName, DeviceName, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.DevicesGenerateCapabilityImage(SubscriptionId, ResourceGroupName, CatalogName, ProductName, DeviceGroupName, DeviceName, _generateDeviceCapabilityRequestBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.UndeclaredResponseException urexception)
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs
index ba3991e2369..e0c02c787b1 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalogExpanded.cs
@@ -33,9 +33,6 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalog
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request of the action to create a signed device capability image
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
-
///
/// The for this operation.
///
@@ -44,6 +41,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalog
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
+ /// Request of the action to create a signed device capability image
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
+
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)]
@@ -68,7 +68,7 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityCatalog
SerializedName = @"capabilities",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.PSArgumentCompleterAttribute("ApplicationDevelopment", "FieldServicing")]
- public string[] Capability { get => _body.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _body.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Capability { get => _generateDeviceCapabilityRequestBody.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _generateDeviceCapabilityRequestBody.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.ISphereIdentity _catalogInputObject;
@@ -249,7 +249,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone._body = this._body;
+ clone._generateDeviceCapabilityRequestBody = this._generateDeviceCapabilityRequestBody;
clone.ProductName = this.ProductName;
clone.DeviceGroupName = this.DeviceGroupName;
clone.DeviceName = this.DeviceName;
@@ -476,7 +476,7 @@ protected override void ProcessRecord()
if (CatalogInputObject?.Id != null)
{
this.CatalogInputObject.Id += $"/products/{(global::System.Uri.EscapeDataString(this.ProductName.ToString()))}/deviceGroups/{(global::System.Uri.EscapeDataString(this.DeviceGroupName.ToString()))}/devices/{(global::System.Uri.EscapeDataString(this.DeviceName.ToString()))}";
- await this.Client.DevicesGenerateCapabilityImageViaIdentity(CatalogInputObject.Id, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.DevicesGenerateCapabilityImageViaIdentity(CatalogInputObject.Id, _generateDeviceCapabilityRequestBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -493,7 +493,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("CatalogInputObject has null value for CatalogInputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, CatalogInputObject) );
}
- await this.Client.DevicesGenerateCapabilityImage(CatalogInputObject.SubscriptionId ?? null, CatalogInputObject.ResourceGroupName ?? null, CatalogInputObject.CatalogName ?? null, ProductName, DeviceGroupName, DeviceName, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.DevicesGenerateCapabilityImage(CatalogInputObject.SubscriptionId ?? null, CatalogInputObject.ResourceGroupName ?? null, CatalogInputObject.CatalogName ?? null, ProductName, DeviceGroupName, DeviceName, _generateDeviceCapabilityRequestBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs
index 307804d72eb..8bd624f0d21 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceGroupExpanded.cs
@@ -33,9 +33,6 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceG
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request of the action to create a signed device capability image
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
-
///
/// The for this operation.
///
@@ -44,6 +41,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceG
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
+ /// Request of the action to create a signed device capability image
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
+
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)]
@@ -68,7 +68,7 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityDeviceG
SerializedName = @"capabilities",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.PSArgumentCompleterAttribute("ApplicationDevelopment", "FieldServicing")]
- public string[] Capability { get => _body.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _body.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Capability { get => _generateDeviceCapabilityRequestBody.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _generateDeviceCapabilityRequestBody.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
/// The reference to the client API class.
public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Sphere Client => Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.ClientAPI;
@@ -221,7 +221,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone._body = this._body;
+ clone._generateDeviceCapabilityRequestBody = this._generateDeviceCapabilityRequestBody;
clone.DeviceName = this.DeviceName;
return clone;
}
@@ -446,7 +446,7 @@ protected override void ProcessRecord()
if (DeviceGroupInputObject?.Id != null)
{
this.DeviceGroupInputObject.Id += $"/devices/{(global::System.Uri.EscapeDataString(this.DeviceName.ToString()))}";
- await this.Client.DevicesGenerateCapabilityImageViaIdentity(DeviceGroupInputObject.Id, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.DevicesGenerateCapabilityImageViaIdentity(DeviceGroupInputObject.Id, _generateDeviceCapabilityRequestBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -471,7 +471,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("DeviceGroupInputObject has null value for DeviceGroupInputObject.DeviceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, DeviceGroupInputObject) );
}
- await this.Client.DevicesGenerateCapabilityImage(DeviceGroupInputObject.SubscriptionId ?? null, DeviceGroupInputObject.ResourceGroupName ?? null, DeviceGroupInputObject.CatalogName ?? null, DeviceGroupInputObject.ProductName ?? null, DeviceGroupInputObject.DeviceGroupName ?? null, DeviceName, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.DevicesGenerateCapabilityImage(DeviceGroupInputObject.SubscriptionId ?? null, DeviceGroupInputObject.ResourceGroupName ?? null, DeviceGroupInputObject.CatalogName ?? null, DeviceGroupInputObject.ProductName ?? null, DeviceGroupInputObject.DeviceGroupName ?? null, DeviceName, _generateDeviceCapabilityRequestBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
diff --git a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs
index 5ba4cfa3080..487d203c785 100644
--- a/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs
+++ b/tests-upgrade/tests-emitter/Sphere.Management/target/generated/cmdlets/NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProductExpanded.cs
@@ -33,9 +33,6 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProduct
/// A unique id generatd for the this cmdlet when ProcessRecord() is called.
private string __processRecordId;
- /// Request of the action to create a signed device capability image
- private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _body = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
-
///
/// The for this operation.
///
@@ -44,6 +41,9 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProduct
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
+ /// Request of the action to create a signed device capability image
+ private Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IGenerateCapabilityImageRequest _generateDeviceCapabilityRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.GenerateCapabilityImageRequest();
+
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.ParameterCategory.Runtime)]
@@ -68,7 +68,7 @@ public partial class NewAzSphereDeviceCapabilityImage_GenerateViaIdentityProduct
SerializedName = @"capabilities",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.Sphere.PSArgumentCompleterAttribute("ApplicationDevelopment", "FieldServicing")]
- public string[] Capability { get => _body.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _body.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
+ public string[] Capability { get => _generateDeviceCapabilityRequestBody.Capability?.ToArray() ?? null /* fixedArrayOf */; set => _generateDeviceCapabilityRequestBody.Capability = (value != null ? new System.Collections.Generic.List(value) : null); }
/// The reference to the client API class.
public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Sphere Client => Microsoft.Azure.PowerShell.Cmdlets.Sphere.Module.Instance.ClientAPI;
@@ -235,7 +235,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Sphere.Cmdlets.NewAzSphereDeviceCapabi
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone._body = this._body;
+ clone._generateDeviceCapabilityRequestBody = this._generateDeviceCapabilityRequestBody;
clone.DeviceGroupName = this.DeviceGroupName;
clone.DeviceName = this.DeviceName;
return clone;
@@ -461,7 +461,7 @@ protected override void ProcessRecord()
if (ProductInputObject?.Id != null)
{
this.ProductInputObject.Id += $"/deviceGroups/{(global::System.Uri.EscapeDataString(this.DeviceGroupName.ToString()))}/devices/{(global::System.Uri.EscapeDataString(this.DeviceName.ToString()))}";
- await this.Client.DevicesGenerateCapabilityImageViaIdentity(ProductInputObject.Id, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.DevicesGenerateCapabilityImageViaIdentity(ProductInputObject.Id, _generateDeviceCapabilityRequestBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -482,7 +482,7 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("ProductInputObject has null value for ProductInputObject.ProductName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, ProductInputObject) );
}
- await this.Client.DevicesGenerateCapabilityImage(ProductInputObject.SubscriptionId ?? null, ProductInputObject.ResourceGroupName ?? null, ProductInputObject.CatalogName ?? null, ProductInputObject.ProductName ?? null, DeviceGroupName, DeviceName, _body, onOk, onDefault, this, Pipeline);
+ await this.Client.DevicesGenerateCapabilityImage(ProductInputObject.SubscriptionId ?? null, ProductInputObject.ResourceGroupName ?? null, ProductInputObject.CatalogName ?? null, ProductInputObject.ProductName ?? null, DeviceGroupName, DeviceName, _generateDeviceCapabilityRequestBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}