diff --git a/src/Resources/Authorization.Autorest/Az.Authorization.psd1 b/src/Resources/Authorization.Autorest/Az.Authorization.psd1 index 884537d5f28b..7fe43c6e3759 100644 --- a/src/Resources/Authorization.Autorest/Az.Authorization.psd1 +++ b/src/Resources/Authorization.Autorest/Az.Authorization.psd1 @@ -1,5 +1,5 @@ @{ - GUID = 'de90936a-b512-40d3-93cd-aa8c85077b04' + GUID = '7501974d-011d-40c9-8f5c-8aca539e2c8b' RootModule = './Az.Authorization.psm1' ModuleVersion = '0.1.0' CompatiblePSEditions = 'Core', 'Desktop' diff --git a/src/Resources/Authorization.Autorest/help/Az.Authorization.md b/src/Resources/Authorization.Autorest/help/Az.Authorization.md index e883558be77e..aff7e86828a0 100644 --- a/src/Resources/Authorization.Autorest/help/Az.Authorization.md +++ b/src/Resources/Authorization.Autorest/help/Az.Authorization.md @@ -1,6 +1,6 @@ --- Module Name: Az.Authorization -Module Guid: de90936a-b512-40d3-93cd-aa8c85077b04 +Module Guid: 7501974d-011d-40c9-8f5c-8aca539e2c8b Download Help Link: https://learn.microsoft.com/powershell/module/az.authorization Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Resources/MSGraph.Autorest/README.md b/src/Resources/MSGraph.Autorest/README.md index f0f719d5e678..eda829edee2e 100644 --- a/src/Resources/MSGraph.Autorest/README.md +++ b/src/Resources/MSGraph.Autorest/README.md @@ -119,7 +119,8 @@ directive: - from: source-file-csharp where: $ transform: if ($documentPath.endsWith("MSGraph.cs")) {$ = $.replace(/Count.ToString\(\)/g, "Count.ToString().ToLower()")} - + + # below directives are for mitigate breaking change upgrading autorest.powershell v3 -> v4 - where: subject: ApplicationsApplication set: @@ -136,6 +137,38 @@ directive: subject: (UsersUser)(.*) set: subject: User$2 + - where: + subject: ^Application$ + parameter-name: ApplicationId + set: + parameter-name: Id + alias: ApplicationId + - where: + subject: ^User$ + parameter-name: UserId + set: + parameter-name: Id + alias: UserId + - where: + subject: ^ServicePrincipal$ + parameter-name: ServicePrincipalId + set: + parameter-name: Id + alias: ServicePrincipalId + - where: + subject: ^Group$ + verb: ^(?!Update$) + parameter-name: GroupId + set: + parameter-name: Id + alias: GroupId + - where: + subject: ^Group$ + verb: ^Update$ + parameter-name: GroupId + set: + parameter-name: ObjectId + alias: GroupId # hide user owned application cmdlets - where: @@ -240,18 +273,6 @@ directive: subject: organization verb: New hide: true - - where: - subject: ^group$ - verb: ^Update$ - parameter-name: GroupId - set: - parameter-name: ObjectId - - where: - subject: ^group$ - verb: ^Update$ - parameter-name: ObjectId - set: - alias: GroupId - where: subject: ^group$ diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs index 1f28b58b84ff..b68e680a58de 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs @@ -53,20 +53,6 @@ public partial class GetAzADApplication_Get : global::System.Management.Automati /// private int _responseSize = 0; - /// Backing field for property. - private string _applicationId; - - /// key: id of application - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of application", - SerializedName = @"application-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ApplicationId { get => this._applicationId; set => this._applicationId = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] @@ -134,6 +120,21 @@ public partial class GetAzADApplication_Get : global::System.Management.Automati [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of application + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of application", + SerializedName = @"application-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ApplicationId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -395,12 +396,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationsApplicationGetApplication(ApplicationId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); + await this.Client.ApplicationsApplicationGetApplication(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs index 2d6fd7705ae6..7f9c3ee31d42 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs @@ -108,20 +108,6 @@ public partial class GetAzADGroup_Get : global::System.Management.Automation.PSC /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _groupId; - - /// key: id of group - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of group", - SerializedName = @"group-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string GroupId { get => this._groupId; set => this._groupId = 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")] [global::System.Management.Automation.ValidateNotNull] @@ -134,6 +120,21 @@ public partial class GetAzADGroup_Get : global::System.Management.Automation.PSC [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of group + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of group", + SerializedName = @"group-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("GroupId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -393,12 +394,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.GroupsGroupGetGroup(GroupId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); + await this.Client.GroupsGroupGetGroup(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId=GroupId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs index 83f7a282ca43..30e0607d21ce 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdServicePrincipal_Get.cs @@ -120,6 +120,21 @@ public partial class GetAzADServicePrincipal_Get : global::System.Management.Aut [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of servicePrincipal + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of servicePrincipal", + SerializedName = @"servicePrincipal-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServicePrincipalId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -167,20 +182,6 @@ public partial class GetAzADServicePrincipal_Get : global::System.Management.Aut [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Query)] public string[] Select { get => this._select; set => this._select = value; } - /// Backing field for property. - private string _servicePrincipalId; - - /// key: id of servicePrincipal - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of servicePrincipal", - SerializedName = @"servicePrincipal-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -395,12 +396,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ServicePrincipalsServicePrincipalGetServicePrincipal(ServicePrincipalId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); + await this.Client.ServicePrincipalsServicePrincipalGetServicePrincipal(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs index f9d9c8254927..be4bac87d4e1 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdUser_Get.cs @@ -117,6 +117,21 @@ public partial class GetAzADUser_Get : global::System.Management.Automation.PSCm [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of user + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of user", + SerializedName = @"user-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("UserId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -164,20 +179,6 @@ public partial class GetAzADUser_Get : global::System.Management.Automation.PSCm [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Query)] public string[] Select { get => this._select; set => this._select = value; } - /// Backing field for property. - private string _userId; - - /// key: id of user - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of user", - SerializedName = @"user-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string UserId { get => this._userId; set => this._userId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -390,12 +391,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UsersUserGetUser(UserId, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); + await this.Client.UsersUserGetUser(Id, this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null, this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,ConsistencyLevel=this.InvocationInformation.BoundParameters.ContainsKey("ConsistencyLevel") ? ConsistencyLevel : null,Select=this.InvocationInformation.BoundParameters.ContainsKey("Select") ? Select : null /* fixedArrayOf */,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null /* fixedArrayOf */}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs index 153f6ce9dbc0..59823a26016c 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs @@ -53,20 +53,6 @@ public partial class RemoveAzADApplication_Delete : global::System.Management.Au /// private int _responseSize = 0; - /// Backing field for property. - private string _applicationId; - - /// key: id of application - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of application", - SerializedName = @"application-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ApplicationId { get => this._applicationId; set => this._applicationId = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] @@ -103,6 +89,21 @@ public partial class RemoveAzADApplication_Delete : global::System.Management.Au [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of application + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of application", + SerializedName = @"application-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ApplicationId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. private string _ifMatch; @@ -363,12 +364,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationsApplicationDeleteApplication(ApplicationId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await this.Client.ApplicationsApplicationDeleteApplication(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs index bb2a682238da..8b10deaf441a 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs @@ -77,20 +77,6 @@ public partial class RemoveAzADGroup_Delete : global::System.Management.Automati /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } - /// Backing field for property. - private string _groupId; - - /// key: id of group - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of group", - SerializedName = @"group-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string GroupId { get => this._groupId; set => this._groupId = 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")] [global::System.Management.Automation.ValidateNotNull] @@ -103,6 +89,21 @@ public partial class RemoveAzADGroup_Delete : global::System.Management.Automati [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of group + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of group", + SerializedName = @"group-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("GroupId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. private string _ifMatch; @@ -363,12 +364,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.GroupsGroupDeleteGroup(GroupId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await this.Client.GroupsGroupDeleteGroup(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId=GroupId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs index 5ef5ccbc3126..09bf99a0904c 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs @@ -89,6 +89,21 @@ public partial class RemoveAzADServicePrincipal_Delete : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of servicePrincipal + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of servicePrincipal", + SerializedName = @"servicePrincipal-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServicePrincipalId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. private string _ifMatch; @@ -142,20 +157,6 @@ public partial class RemoveAzADServicePrincipal_Delete : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _servicePrincipalId; - - /// key: id of servicePrincipal - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of servicePrincipal", - SerializedName = @"servicePrincipal-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -363,12 +364,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ServicePrincipalsServicePrincipalDeleteServicePrincipal(ServicePrincipalId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await this.Client.ServicePrincipalsServicePrincipalDeleteServicePrincipal(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs index e56e649168d2..ae65d898b1ec 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs @@ -86,6 +86,21 @@ public partial class RemoveAzADUser_Delete : global::System.Management.Automatio [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of user + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of user", + SerializedName = @"user-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("UserId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. private string _ifMatch; @@ -139,20 +154,6 @@ public partial class RemoveAzADUser_Delete : global::System.Management.Automatio [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _userId; - - /// key: id of user - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of user", - SerializedName = @"user-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string UserId { get => this._userId; set => this._userId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -360,12 +361,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UsersUserDeleteUser(UserId, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await this.Client.UsersUserDeleteUser(Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs index 002516af242d..e4c8674ff6e7 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs @@ -56,20 +56,6 @@ public partial class UpdateAzADApplication_UpdateViaJsonFilePath : global::Syste /// private int _responseSize = 0; - /// Backing field for property. - private string _applicationId; - - /// key: id of application - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of application", - SerializedName = @"application-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ApplicationId { get => this._applicationId; set => this._applicationId = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] @@ -106,6 +92,21 @@ public partial class UpdateAzADApplication_UpdateViaJsonFilePath : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of application + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of application", + SerializedName = @"application-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ApplicationId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -365,12 +366,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(ApplicationId, _jsonString, onNoContent, onDefault, this, Pipeline); + await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs index 10cfd82b4ffe..1a5d5aa53fcb 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs @@ -54,20 +54,6 @@ public partial class UpdateAzADApplication_UpdateViaJsonString : global::System. /// private int _responseSize = 0; - /// Backing field for property. - private string _applicationId; - - /// key: id of application - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of application", - SerializedName = @"application-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ApplicationId { get => this._applicationId; set => this._applicationId = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] @@ -104,6 +90,21 @@ public partial class UpdateAzADApplication_UpdateViaJsonString : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of application + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of application", + SerializedName = @"application-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ApplicationId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -363,12 +364,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(ApplicationId, _jsonString, onNoContent, onDefault, this, Pipeline); + await this.Client.ApplicationsApplicationUpdateApplicationViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs index 9f23120a5abd..7f7ea5fececb 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs @@ -92,6 +92,21 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonFilePath : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of servicePrincipal + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of servicePrincipal", + SerializedName = @"servicePrincipal-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServicePrincipalId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -144,20 +159,6 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonFilePath : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _servicePrincipalId; - - /// key: id of servicePrincipal - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of servicePrincipal", - SerializedName = @"servicePrincipal-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -365,12 +366,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(ServicePrincipalId, _jsonString, onNoContent, onDefault, this, Pipeline); + await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs index 2b2e1af430a3..3b4349cecaa0 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs @@ -90,6 +90,21 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonString : global::Sy [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of servicePrincipal + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of servicePrincipal", + SerializedName = @"servicePrincipal-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServicePrincipalId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -142,20 +157,6 @@ public partial class UpdateAzADServicePrincipal_UpdateViaJsonString : global::Sy [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _servicePrincipalId; - - /// key: id of servicePrincipal - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of servicePrincipal", - SerializedName = @"servicePrincipal-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -363,12 +364,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(ServicePrincipalId, _jsonString, onNoContent, onDefault, this, Pipeline); + await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipalViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs index 9ed66268d77b..1444f8a48dea 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs @@ -89,6 +89,21 @@ public partial class UpdateAzADUser_UpdateViaJsonFilePath : global::System.Manag [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of user + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of user", + SerializedName = @"user-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("UserId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -141,20 +156,6 @@ public partial class UpdateAzADUser_UpdateViaJsonFilePath : global::System.Manag [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _userId; - - /// key: id of user - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of user", - SerializedName = @"user-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string UserId { get => this._userId; set => this._userId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -362,12 +363,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UsersUserUpdateUserViaJsonString(UserId, _jsonString, onNoContent, onDefault, this, Pipeline); + await this.Client.UsersUserUpdateUserViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs index 06a07f518f13..643333bcfa98 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs @@ -87,6 +87,21 @@ public partial class UpdateAzADUser_UpdateViaJsonString : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of user + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of user", + SerializedName = @"user-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("UserId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -139,20 +154,6 @@ public partial class UpdateAzADUser_UpdateViaJsonString : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _userId; - - /// key: id of user - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of user", - SerializedName = @"user-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string UserId { get => this._userId; set => this._userId = value; } - /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior @@ -360,12 +361,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UsersUserUpdateUserViaJsonString(UserId, _jsonString, onNoContent, onDefault, this, Pipeline); + await this.Client.UsersUserUpdateUserViaJsonString(Id, _jsonString, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs index b84f8eb5a69f..98b7fb4fdcc6 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs @@ -104,20 +104,6 @@ public partial class UpdateAzADApplication_UpdateExpanded : global::System.Manag PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphAppRole) })] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphAppRole[] AppRole { get => _body.AppRole ?? null /* fixedArrayOf */; set => _body.AppRole = value; } - /// Backing field for property. - private string _applicationId; - - /// key: id of application - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of application", - SerializedName = @"application-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ApplicationId { get => this._applicationId; set => this._applicationId = value; } - /// Unique identifier of the applicationTemplate. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Unique identifier of the applicationTemplate.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Body)] @@ -279,6 +265,21 @@ public partial class UpdateAzADApplication_UpdateExpanded : global::System.Manag [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of application + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of application", + SerializedName = @"application-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ApplicationId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// /// The URIs that identify the application within its Azure AD tenant, or within a verified custom domain if the application /// is multi-tenant. For more information, see Application Objects and Service Principal Objects. The any operator is required @@ -808,12 +809,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ApplicationsApplicationUpdateApplication(ApplicationId, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate); + await this.Client.ApplicationsApplicationUpdateApplication(Id, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ApplicationId=ApplicationId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs index 98407a9b88bd..0bb5da9b7cfe 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs @@ -377,6 +377,21 @@ public partial class UpdateAzADServicePrincipal_UpdateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of servicePrincipal + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of servicePrincipal", + SerializedName = @"servicePrincipal-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServicePrincipalId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// informationalUrl [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "informationalUrl")] [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Body)] @@ -584,20 +599,6 @@ public partial class UpdateAzADServicePrincipal_UpdateExpanded : global::System. PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphSamlSingleSignOnSettings) })] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphSamlSingleSignOnSettings SamlSingleSignOnSetting { get => _body.SamlSingleSignOnSetting ?? null /* object */; set => _body.SamlSingleSignOnSetting = value; } - /// Backing field for property. - private string _servicePrincipalId; - - /// key: id of servicePrincipal - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of servicePrincipal")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of servicePrincipal", - SerializedName = @"servicePrincipal-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string ServicePrincipalId { get => this._servicePrincipalId; set => this._servicePrincipalId = value; } - /// /// Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid /// applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client @@ -905,12 +906,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipal(ServicePrincipalId, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate); + await this.Client.ServicePrincipalsServicePrincipalUpdateServicePrincipal(Id, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ServicePrincipalId=ServicePrincipalId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs index 6e0ee3f5e500..dcd889b2cacf 100644 --- a/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs +++ b/src/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs @@ -358,6 +358,21 @@ public partial class UpdateAzADUser_UpdateExpanded : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + /// Backing field for property. + private string _id; + + /// key: id of user + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"key: id of user", + SerializedName = @"user-id", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("UserId")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] + public string Id { get => this._id; set => this._id = value; } + /// /// Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also /// known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, @@ -739,20 +754,6 @@ public partial class UpdateAzADUser_UpdateExpanded : global::System.Management.A PossibleTypes = new [] { typeof(string) })] public string UsageLocation { get => _body.UsageLocation ?? null; set => _body.UsageLocation = value; } - /// Backing field for property. - private string _userId; - - /// key: id of user - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of user")] - [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"key: id of user", - SerializedName = @"user-id", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)] - public string UserId { get => this._userId; set => this._userId = value; } - /// /// The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet /// standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain @@ -993,12 +994,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UsersUserUpdateUser(UserId, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate); + await this.Client.UsersUserUpdateUser(Id, _body, onNoContent, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { UserId=UserId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 index f3dd76287940..9dca79e01710 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADApplication.ps1 @@ -47,10 +47,11 @@ function Get-AzADApplication { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ApplicationId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of application - ${ApplicationId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 index 6a1eb9bff922..bcb5e49e240e 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADGroup.ps1 @@ -43,10 +43,11 @@ function Get-AzADGroup { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('GroupId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of group - ${GroupId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 index 7bec0906f4de..38421964b394 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADServicePrincipal.ps1 @@ -47,10 +47,11 @@ function Get-AzADServicePrincipal { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServicePrincipalId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of servicePrincipal - ${ServicePrincipalId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] diff --git a/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 index abb7d27eb8b7..b21363d01fb8 100644 --- a/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Get-AzADUser.ps1 @@ -41,10 +41,11 @@ function Get-AzADUser { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('UserId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of user - ${UserId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] diff --git a/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 index 772e101404bc..d90aa2c179a2 100644 --- a/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -981,10 +981,11 @@ function Get-AzADApplication { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ApplicationId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of application - ${ApplicationId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] @@ -1347,10 +1348,11 @@ function Get-AzADGroup { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('GroupId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of group - ${GroupId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] @@ -1542,10 +1544,11 @@ function Get-AzADServicePrincipal { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServicePrincipalId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of servicePrincipal - ${ServicePrincipalId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] @@ -2153,10 +2156,11 @@ function Get-AzADUser { [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('UserId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of user - ${UserId}, + ${Id}, [Parameter()] [AllowEmptyCollection()] @@ -7174,10 +7178,11 @@ function Remove-AzADApplication { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ApplicationId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of application - ${ApplicationId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] @@ -7438,10 +7443,11 @@ function Remove-AzADGroup { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('GroupId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of group - ${GroupId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] @@ -7905,10 +7911,11 @@ function Remove-AzADServicePrincipal { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ServicePrincipalId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of servicePrincipal - ${ServicePrincipalId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] @@ -8033,10 +8040,11 @@ function Remove-AzADUser { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('UserId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of user - ${UserId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] @@ -8904,10 +8912,11 @@ function Update-AzADApplication { [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ApplicationId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of application - ${ApplicationId}, + ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] @@ -10242,10 +10251,11 @@ function Update-AzADServicePrincipal { [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ServicePrincipalId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of servicePrincipal - ${ServicePrincipalId}, + ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] @@ -10715,10 +10725,11 @@ function Update-AzADUser { [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('UserId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of user - ${UserId}, + ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 index 67a5ef6004e4..887155924786 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADApplication.ps1 @@ -36,10 +36,11 @@ function Remove-AzADApplication { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ApplicationId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of application - ${ApplicationId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 index 5ac5edff9cb0..b3e2f1d6490d 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADGroup.ps1 @@ -36,10 +36,11 @@ function Remove-AzADGroup { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('GroupId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of group - ${GroupId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 index 9e0a2d4cabba..29b92921bcbc 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADServicePrincipal.ps1 @@ -36,10 +36,11 @@ function Remove-AzADServicePrincipal { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ServicePrincipalId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of servicePrincipal - ${ServicePrincipalId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] diff --git a/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 index 85d8a161cc2f..abd7b4d5492b 100644 --- a/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Remove-AzADUser.ps1 @@ -34,10 +34,11 @@ function Remove-AzADUser { [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('UserId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of user - ${UserId}, + ${Id}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Header')] diff --git a/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 b/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 index fb91d976e5ac..215b87b78ac5 100644 --- a/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Update-AzADApplication.ps1 @@ -777,10 +777,11 @@ function Update-AzADApplication { [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ApplicationId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of application - ${ApplicationId}, + ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] diff --git a/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 b/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 index 50ec2c134e3f..3fe27289db5f 100644 --- a/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Update-AzADServicePrincipal.ps1 @@ -980,10 +980,11 @@ function Update-AzADServicePrincipal { [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('ServicePrincipalId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of servicePrincipal - ${ServicePrincipalId}, + ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] diff --git a/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 b/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 index f15260da09c1..29e797ea2137 100644 --- a/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 +++ b/src/Resources/MSGraph.Autorest/internal/Update-AzADUser.ps1 @@ -56,10 +56,11 @@ function Update-AzADUser { [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('UserId')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Path')] [System.String] # key: id of user - ${UserId}, + ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')] diff --git a/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded.cs b/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded.cs index cc134071f51f..9320b1ee55b4 100644 --- a/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded.cs +++ b/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded.cs @@ -111,8 +111,8 @@ public partial class NewAzPolicyAssignment_CreateExpanded : global::System.Manag PossibleTypes = new [] { typeof(string) })] public string DisplayName { get => _parametersBody.DisplayName ?? null; set => _parametersBody.DisplayName = value; } - /// Decides if enable a system assigned identity for the resource. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")] + /// Determines whether to enable a system-assigned identity for the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")] public global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _parametersBody.IdentityType = value.IsPresent ? "SystemAssigned": null ; } /// diff --git a/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded1.cs b/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded1.cs index b6efcbf12f25..6110ab00271a 100644 --- a/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded1.cs +++ b/src/Resources/Policy.Autorest/generated/cmdlets/NewAzPolicyAssignment_CreateExpanded1.cs @@ -114,8 +114,8 @@ public partial class NewAzPolicyAssignment_CreateExpanded1 : global::System.Mana PossibleTypes = new [] { typeof(string) })] public string DisplayName { get => _parametersBody.DisplayName ?? null; set => _parametersBody.DisplayName = value; } - /// Decides if enable a system assigned identity for the resource. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")] + /// Determines whether to enable a system-assigned identity for the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")] public global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _parametersBody.IdentityType = value.IsPresent ? "SystemAssigned": null ; } /// diff --git a/src/Resources/Policy.Autorest/generated/cmdlets/UpdateAzPolicyAssignment_UpdateExpanded.cs b/src/Resources/Policy.Autorest/generated/cmdlets/UpdateAzPolicyAssignment_UpdateExpanded.cs index 29529294e8cd..720ee68e5baf 100644 --- a/src/Resources/Policy.Autorest/generated/cmdlets/UpdateAzPolicyAssignment_UpdateExpanded.cs +++ b/src/Resources/Policy.Autorest/generated/cmdlets/UpdateAzPolicyAssignment_UpdateExpanded.cs @@ -115,8 +115,8 @@ public partial class UpdateAzPolicyAssignment_UpdateExpanded : global::System.Ma PossibleTypes = new [] { typeof(string) })] public string DisplayName { get => _parametersBody.DisplayName ?? null; set => _parametersBody.DisplayName = value; } - /// Decides if enable a system assigned identity for the resource. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")] + /// Determines whether to enable a system-assigned identity for the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Determines whether to enable a system-assigned identity for the resource.")] public System.Boolean? EnableSystemAssignedIdentity { get; set; } /// diff --git a/src/Resources/Policy.Autorest/internal/New-AzPolicyAssignment.ps1 b/src/Resources/Policy.Autorest/internal/New-AzPolicyAssignment.ps1 index 6276d102f07b..a25a5ecc04ed 100644 --- a/src/Resources/Policy.Autorest/internal/New-AzPolicyAssignment.ps1 +++ b/src/Resources/Policy.Autorest/internal/New-AzPolicyAssignment.ps1 @@ -173,7 +173,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Policy.Category('Body')] [System.Management.Automation.SwitchParameter] - # Decides if enable a system assigned identity for the resource. + # Determines whether to enable a system-assigned identity for the resource. ${EnableSystemAssignedIdentity}, [Parameter()] diff --git a/src/Resources/Policy.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/Resources/Policy.Autorest/internal/ProxyCmdletDefinitions.ps1 index 78d8857a3ffa..1873b4a7db0a 100644 --- a/src/Resources/Policy.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Resources/Policy.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -2447,7 +2447,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Policy.Category('Body')] [System.Management.Automation.SwitchParameter] - # Decides if enable a system assigned identity for the resource. + # Determines whether to enable a system-assigned identity for the resource. ${EnableSystemAssignedIdentity}, [Parameter()] @@ -4878,7 +4878,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Policy.Category('Body')] [System.Nullable[System.Boolean]] - # Decides if enable a system assigned identity for the resource. + # Determines whether to enable a system-assigned identity for the resource. ${EnableSystemAssignedIdentity}, [Parameter()] diff --git a/src/Resources/Policy.Autorest/internal/Update-AzPolicyAssignment.ps1 b/src/Resources/Policy.Autorest/internal/Update-AzPolicyAssignment.ps1 index 02cf57a8c249..126fc4072464 100644 --- a/src/Resources/Policy.Autorest/internal/Update-AzPolicyAssignment.ps1 +++ b/src/Resources/Policy.Autorest/internal/Update-AzPolicyAssignment.ps1 @@ -137,7 +137,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Policy.Category('Body')] [System.Nullable[System.Boolean]] - # Decides if enable a system assigned identity for the resource. + # Determines whether to enable a system-assigned identity for the resource. ${EnableSystemAssignedIdentity}, [Parameter()] diff --git a/src/Resources/Resources/Az.Resources.psd1 b/src/Resources/Resources/Az.Resources.psd1 index 682f66f8158d..325cfaeb7bdd 100644 --- a/src/Resources/Resources/Az.Resources.psd1 +++ b/src/Resources/Resources/Az.Resources.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 10/30/2024 +# Generated on: 11/1/2024 # @{