Skip to content

Commit 92124d4

Browse files
VeryEarlyazure-pipelines[bot]azure-powershell-botNickcandy
authored
[release] Bugfix for release-2024-11-11 (#26568)
* Move Resources to yabo/release-2024-11-11 (#26566) Co-authored-by: azure-powershell-bot <[email protected]> * release for 2024-11-11 (#26555) * Remove the newly added common parameter ProgressAction (#26558) * release for 2024-11-11 * Remove the newly added common parameter ProgressAction --------- Co-authored-by: azure-pipelines[bot] <36771401+azure-pipelines[bot]@users.noreply.github.com> Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: NanxiangLiu <[email protected]>
1 parent 6061329 commit 92124d4

39 files changed

+380
-320
lines changed

src/Resources/Authorization.Autorest/Az.Authorization.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
GUID = 'de90936a-b512-40d3-93cd-aa8c85077b04'
2+
GUID = '7501974d-011d-40c9-8f5c-8aca539e2c8b'
33
RootModule = './Az.Authorization.psm1'
44
ModuleVersion = '0.1.0'
55
CompatiblePSEditions = 'Core', 'Desktop'

src/Resources/Authorization.Autorest/help/Az.Authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Authorization
3-
Module Guid: de90936a-b512-40d3-93cd-aa8c85077b04
3+
Module Guid: 7501974d-011d-40c9-8f5c-8aca539e2c8b
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.authorization
55
Help Version: 1.0.0.0
66
Locale: en-US

src/Resources/MSGraph.Autorest/README.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ directive:
119119
- from: source-file-csharp
120120
where: $
121121
transform: if ($documentPath.endsWith("MSGraph.cs")) {$ = $.replace(/Count.ToString\(\)/g, "Count.ToString().ToLower()")}
122-
122+
123+
# below directives are for mitigate breaking change upgrading autorest.powershell v3 -> v4
123124
- where:
124125
subject: ApplicationsApplication
125126
set:
@@ -136,6 +137,38 @@ directive:
136137
subject: (UsersUser)(.*)
137138
set:
138139
subject: User$2
140+
- where:
141+
subject: ^Application$
142+
parameter-name: ApplicationId
143+
set:
144+
parameter-name: Id
145+
alias: ApplicationId
146+
- where:
147+
subject: ^User$
148+
parameter-name: UserId
149+
set:
150+
parameter-name: Id
151+
alias: UserId
152+
- where:
153+
subject: ^ServicePrincipal$
154+
parameter-name: ServicePrincipalId
155+
set:
156+
parameter-name: Id
157+
alias: ServicePrincipalId
158+
- where:
159+
subject: ^Group$
160+
verb: ^(?!Update$)
161+
parameter-name: GroupId
162+
set:
163+
parameter-name: Id
164+
alias: GroupId
165+
- where:
166+
subject: ^Group$
167+
verb: ^Update$
168+
parameter-name: GroupId
169+
set:
170+
parameter-name: ObjectId
171+
alias: GroupId
139172

140173
# hide user owned application cmdlets
141174
- where:
@@ -240,18 +273,6 @@ directive:
240273
subject: organization
241274
verb: New
242275
hide: true
243-
- where:
244-
subject: ^group$
245-
verb: ^Update$
246-
parameter-name: GroupId
247-
set:
248-
parameter-name: ObjectId
249-
- where:
250-
subject: ^group$
251-
verb: ^Update$
252-
parameter-name: ObjectId
253-
set:
254-
alias: GroupId
255276

256277
- where:
257278
subject: ^group$

src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdApplication_Get.cs

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,6 @@ public partial class GetAzADApplication_Get : global::System.Management.Automati
5353
/// </summary>
5454
private int _responseSize = 0;
5555

56-
/// <summary>Backing field for <see cref="ApplicationId" /> property.</summary>
57-
private string _applicationId;
58-
59-
/// <summary>key: id of application</summary>
60-
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
61-
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
62-
Required = true,
63-
ReadOnly = false,
64-
Description = @"key: id of application",
65-
SerializedName = @"application-id",
66-
PossibleTypes = new [] { typeof(string) })]
67-
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
68-
public string ApplicationId { get => this._applicationId; set => this._applicationId = value; }
69-
7056
/// <summary>Wait for .NET debugger to attach</summary>
7157
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
7258
[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
134120
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
135121
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
136122

123+
/// <summary>Backing field for <see cref="Id" /> property.</summary>
124+
private string _id;
125+
126+
/// <summary>key: id of application</summary>
127+
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of application")]
128+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
129+
Required = true,
130+
ReadOnly = false,
131+
Description = @"key: id of application",
132+
SerializedName = @"application-id",
133+
PossibleTypes = new [] { typeof(string) })]
134+
[global::System.Management.Automation.Alias("ApplicationId")]
135+
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
136+
public string Id { get => this._id; set => this._id = value; }
137+
137138
/// <summary>Accessor for our copy of the InvocationInfo.</summary>
138139
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
139140

@@ -395,12 +396,12 @@ protected override void ProcessRecord()
395396
try
396397
{
397398
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; }
398-
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);
399+
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);
399400
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; }
400401
}
401402
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
402403
{
403-
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 */})
404+
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 */})
404405
{
405406
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
406407
});

src/Resources/MSGraph.Autorest/generated/cmdlets/GetAzAdGroup_Get.cs

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,6 @@ public partial class GetAzADGroup_Get : global::System.Management.Automation.PSC
108108
/// <summary>Accessor for extensibleParameters.</summary>
109109
public global::System.Collections.Generic.IDictionary<global::System.String,global::System.Object> ExtensibleParameters { get => _extensibleParameters ; }
110110

111-
/// <summary>Backing field for <see cref="GroupId" /> property.</summary>
112-
private string _groupId;
113-
114-
/// <summary>key: id of group</summary>
115-
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")]
116-
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
117-
Required = true,
118-
ReadOnly = false,
119-
Description = @"key: id of group",
120-
SerializedName = @"group-id",
121-
PossibleTypes = new [] { typeof(string) })]
122-
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
123-
public string GroupId { get => this._groupId; set => this._groupId = value; }
124-
125111
/// <summary>SendAsync Pipeline Steps to be appended to the front of the pipeline</summary>
126112
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
127113
[global::System.Management.Automation.ValidateNotNull]
@@ -134,6 +120,21 @@ public partial class GetAzADGroup_Get : global::System.Management.Automation.PSC
134120
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Runtime)]
135121
public Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }
136122

123+
/// <summary>Backing field for <see cref="Id" /> property.</summary>
124+
private string _id;
125+
126+
/// <summary>key: id of group</summary>
127+
[global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "key: id of group")]
128+
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.Info(
129+
Required = true,
130+
ReadOnly = false,
131+
Description = @"key: id of group",
132+
SerializedName = @"group-id",
133+
PossibleTypes = new [] { typeof(string) })]
134+
[global::System.Management.Automation.Alias("GroupId")]
135+
[global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.ParameterCategory.Path)]
136+
public string Id { get => this._id; set => this._id = value; }
137+
137138
/// <summary>Accessor for our copy of the InvocationInfo.</summary>
138139
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
139140

@@ -393,12 +394,12 @@ protected override void ProcessRecord()
393394
try
394395
{
395396
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; }
396-
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);
397+
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);
397398
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; }
398399
}
399400
catch (Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime.UndeclaredResponseException urexception)
400401
{
401-
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 */})
402+
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 */})
402403
{
403404
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
404405
});

0 commit comments

Comments
 (0)