Skip to content

Commit 208347b

Browse files
VeryEarlyazure-powershell-botwyunchi-ms
authored
[Az.Resources] AAD application federated identity credential migrate gen-to-main (#18221)
* Move Resources to release-2022-05-24 * update changelog * Add breaking change exceptions Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Yunchi Wang <[email protected]>
1 parent a5bea28 commit 208347b

File tree

610 files changed

+11421
-3478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

610 files changed

+11421
-3478
lines changed

src/Resources/Authorization.Autorest/check-dependencies.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if(-not $Isolated) {
2525
function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
2626
if($predicate) {
2727
$module = Get-Module -ListAvailable -Name $moduleName
28-
if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
28+
if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
2929
$null = New-Item -ItemType Directory -Force -Path $path
3030
Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
3131
if ($requiredVersion) {

src/Resources/Authorization.Autorest/docs/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: 6ecaa7be-41f0-40c8-8246-8b97f7e15a95
3+
Module Guid: e2748a39-705b-4fb3-b793-2f6b8f5cfec1
44
Download Help Link: https://docs.microsoft.com/powershell/module/az.authorization
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest_powershell": "3.0.482",
3-
"swagger_commit": "3439439b760e84e5dcc3e68edde7251c602da5f0",
42
"node": "v14.15.5",
5-
"autorest_core": "3.8.3",
3+
"autorest_core": "3.8.4",
4+
"autorest_modelerfour": "4.15.414",
5+
"swagger_commit": "d55b8005f05b040b852c15e74a0f3e36494a15e1",
66
"autorest": "`-- (empty)",
7-
"autorest_modelerfour": "4.15.414"
7+
"autorest_powershell": "3.0.486"
88
}

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/ApprovalSettings.PowerShell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.
158158
/// Creates a new instance of <see cref="ApprovalSettings" />, deserializing the content from a json string.
159159
/// </summary>
160160
/// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
161-
/// <returns>an instance of the <see cref="className" /> model class.</returns>
161+
/// <returns>an instance of the <see cref="ApprovalSettings" /> model class.</returns>
162162
public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IApprovalSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonNode.Parse(jsonText));
163163

164164
/// <summary>Serializes this instance to a json string.</summary>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/ApprovalSettings.TypeConverter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public partial class ApprovalSettingsTypeConverter : global::System.Management.A
2626
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
2727

2828
/// <summary>
29-
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
30-
/// parameter.
29+
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="ApprovalSettings" type/>.
3130
/// </summary>
3231
/// <param name="sourceValue">the <see cref="System.Object" /> instance to check if it can be converted to the <see cref="ApprovalSettings"
3332
/// /> type.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/ApprovalSettings.json.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public partial class ApprovalSettings
2020
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject json);
2121

2222
/// <summary>
23-
/// <c>AfterToJson</c> will be called after the json erialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
23+
/// <c>AfterToJson</c> will be called after the json serialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
2424
/// /> before it is returned. Implement this method in a partial class to enable this behavior
2525
/// </summary>
2626
/// <param name="container">The JSON container that the serialization result will be placed in.</param>
@@ -30,7 +30,8 @@ public partial class ApprovalSettings
3030
/// <summary>
3131
/// <c>BeforeFromJson</c> will be called before the json deserialization has commenced, allowing complete customization of
3232
/// the object before it is deserialized.
33-
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
33+
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <paramref name= "returnNow" />
34+
/// output parameter.
3435
/// Implement this method in a partial class to enable this behavior.
3536
/// </summary>
3637
/// <param name="json">The JsonNode that should be deserialized into this object.</param>
@@ -42,7 +43,8 @@ public partial class ApprovalSettings
4243
/// <summary>
4344
/// <c>BeforeToJson</c> will be called before the json serialization has commenced, allowing complete customization of the
4445
/// object before it is serialized.
45-
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
46+
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <paramref name="returnNow" /> output
47+
/// parameter.
4648
/// Implement this method in a partial class to enable this behavior.
4749
/// </summary>
4850
/// <param name="container">The JSON container that the serialization result will be placed in.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/ApprovalStage.PowerShell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.
166166
/// Creates a new instance of <see cref="ApprovalStage" />, deserializing the content from a json string.
167167
/// </summary>
168168
/// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
169-
/// <returns>an instance of the <see cref="className" /> model class.</returns>
169+
/// <returns>an instance of the <see cref="ApprovalStage" /> model class.</returns>
170170
public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IApprovalStage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonNode.Parse(jsonText));
171171

172172
/// <summary>Serializes this instance to a json string.</summary>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/ApprovalStage.TypeConverter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public partial class ApprovalStageTypeConverter : global::System.Management.Auto
2626
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
2727

2828
/// <summary>
29-
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
30-
/// parameter.
29+
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="ApprovalStage" type/>.
3130
/// </summary>
3231
/// <param name="sourceValue">the <see cref="System.Object" /> instance to check if it can be converted to the <see cref="ApprovalStage"
3332
/// /> type.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/ApprovalStage.json.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public partial class ApprovalStage
2020
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject json);
2121

2222
/// <summary>
23-
/// <c>AfterToJson</c> will be called after the json erialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
23+
/// <c>AfterToJson</c> will be called after the json serialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
2424
/// /> before it is returned. Implement this method in a partial class to enable this behavior
2525
/// </summary>
2626
/// <param name="container">The JSON container that the serialization result will be placed in.</param>
@@ -30,7 +30,8 @@ public partial class ApprovalStage
3030
/// <summary>
3131
/// <c>BeforeFromJson</c> will be called before the json deserialization has commenced, allowing complete customization of
3232
/// the object before it is deserialized.
33-
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
33+
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <paramref name= "returnNow" />
34+
/// output parameter.
3435
/// Implement this method in a partial class to enable this behavior.
3536
/// </summary>
3637
/// <param name="json">The JsonNode that should be deserialized into this object.</param>
@@ -42,7 +43,8 @@ public partial class ApprovalStage
4243
/// <summary>
4344
/// <c>BeforeToJson</c> will be called before the json serialization has commenced, allowing complete customization of the
4445
/// object before it is serialized.
45-
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
46+
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <paramref name="returnNow" /> output
47+
/// parameter.
4648
/// Implement this method in a partial class to enable this behavior.
4749
/// </summary>
4850
/// <param name="container">The JSON container that the serialization result will be placed in.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/CloudError.PowerShell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.
142142
/// Creates a new instance of <see cref="CloudError" />, deserializing the content from a json string.
143143
/// </summary>
144144
/// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
145-
/// <returns>an instance of the <see cref="className" /> model class.</returns>
145+
/// <returns>an instance of the <see cref="CloudError" /> model class.</returns>
146146
public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonNode.Parse(jsonText));
147147

148148
/// <summary>Serializes this instance to a json string.</summary>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/CloudError.TypeConverter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public partial class CloudErrorTypeConverter : global::System.Management.Automat
2626
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
2727

2828
/// <summary>
29-
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
30-
/// parameter.
29+
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="CloudError" type/>.
3130
/// </summary>
3231
/// <param name="sourceValue">the <see cref="System.Object" /> instance to check if it can be converted to the <see cref="CloudError"
3332
/// /> type.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/CloudError.json.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public partial class CloudError
2020
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject json);
2121

2222
/// <summary>
23-
/// <c>AfterToJson</c> will be called after the json erialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
23+
/// <c>AfterToJson</c> will be called after the json serialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
2424
/// /> before it is returned. Implement this method in a partial class to enable this behavior
2525
/// </summary>
2626
/// <param name="container">The JSON container that the serialization result will be placed in.</param>
@@ -30,7 +30,8 @@ public partial class CloudError
3030
/// <summary>
3131
/// <c>BeforeFromJson</c> will be called before the json deserialization has commenced, allowing complete customization of
3232
/// the object before it is deserialized.
33-
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
33+
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <paramref name= "returnNow" />
34+
/// output parameter.
3435
/// Implement this method in a partial class to enable this behavior.
3536
/// </summary>
3637
/// <param name="json">The JsonNode that should be deserialized into this object.</param>
@@ -42,7 +43,8 @@ public partial class CloudError
4243
/// <summary>
4344
/// <c>BeforeToJson</c> will be called before the json serialization has commenced, allowing complete customization of the
4445
/// object before it is serialized.
45-
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
46+
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <paramref name="returnNow" /> output
47+
/// parameter.
4648
/// Implement this method in a partial class to enable this behavior.
4749
/// </summary>
4850
/// <param name="container">The JSON container that the serialization result will be placed in.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/CloudErrorBody.PowerShell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.
134134
/// Creates a new instance of <see cref="CloudErrorBody" />, deserializing the content from a json string.
135135
/// </summary>
136136
/// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
137-
/// <returns>an instance of the <see cref="className" /> model class.</returns>
137+
/// <returns>an instance of the <see cref="CloudErrorBody" /> model class.</returns>
138138
public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonNode.Parse(jsonText));
139139

140140
/// <summary>Serializes this instance to a json string.</summary>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/CloudErrorBody.TypeConverter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public partial class CloudErrorBodyTypeConverter : global::System.Management.Aut
2626
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
2727

2828
/// <summary>
29-
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
30-
/// parameter.
29+
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="CloudErrorBody" type/>.
3130
/// </summary>
3231
/// <param name="sourceValue">the <see cref="System.Object" /> instance to check if it can be converted to the <see cref="CloudErrorBody"
3332
/// /> type.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/CloudErrorBody.json.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public partial class CloudErrorBody
2020
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject json);
2121

2222
/// <summary>
23-
/// <c>AfterToJson</c> will be called after the json erialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
23+
/// <c>AfterToJson</c> will be called after the json serialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonObject"
2424
/// /> before it is returned. Implement this method in a partial class to enable this behavior
2525
/// </summary>
2626
/// <param name="container">The JSON container that the serialization result will be placed in.</param>
@@ -30,7 +30,8 @@ public partial class CloudErrorBody
3030
/// <summary>
3131
/// <c>BeforeFromJson</c> will be called before the json deserialization has commenced, allowing complete customization of
3232
/// the object before it is deserialized.
33-
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
33+
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <paramref name= "returnNow" />
34+
/// output parameter.
3435
/// Implement this method in a partial class to enable this behavior.
3536
/// </summary>
3637
/// <param name="json">The JsonNode that should be deserialized into this object.</param>
@@ -42,7 +43,8 @@ public partial class CloudErrorBody
4243
/// <summary>
4344
/// <c>BeforeToJson</c> will be called before the json serialization has commenced, allowing complete customization of the
4445
/// object before it is serialized.
45-
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
46+
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <paramref name="returnNow" /> output
47+
/// parameter.
4648
/// Implement this method in a partial class to enable this behavior.
4749
/// </summary>
4850
/// <param name="container">The JSON container that the serialization result will be placed in.</param>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/EligibleChildResource.PowerShell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ internal EligibleChildResource(global::System.Management.Automation.PSObject con
142142
/// Creates a new instance of <see cref="EligibleChildResource" />, deserializing the content from a json string.
143143
/// </summary>
144144
/// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
145-
/// <returns>an instance of the <see cref="className" /> model class.</returns>
145+
/// <returns>an instance of the <see cref="EligibleChildResource" /> model class.</returns>
146146
public static Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IEligibleChildResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Runtime.Json.JsonNode.Parse(jsonText));
147147

148148
/// <summary>Serializes this instance to a json string.</summary>

src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/EligibleChildResource.TypeConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public partial class EligibleChildResourceTypeConverter : global::System.Managem
2626
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
2727

2828
/// <summary>
29-
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
30-
/// parameter.
29+
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="EligibleChildResource"
30+
/// type/>.
3131
/// </summary>
3232
/// <param name="sourceValue">the <see cref="System.Object" /> instance to check if it can be converted to the <see cref="EligibleChildResource"
3333
/// /> type.</param>

0 commit comments

Comments
 (0)