Skip to content

Commit 135e244

Browse files
archerzzm-nashazure-sdk
authored
feat(mgmt): auto-simplify Type property names (Azure#27869)
* feat(mgmt): auto-simplify `Type` property names * update api * feat(mgmt): auto-simplify `Type` property names * update api * udpate according to latest autorest change * update api spec * re-gen by latest autorest.csharp * fix tests * update api * Update AutoRest C# version to 3.0.0-beta.20220405.2 * regen after merges Co-authored-by: m-nash <prognash@gmail.com> Co-authored-by: azure-sdk <azuresdk@microsoft.com>
1 parent cc42eaa commit 135e244

File tree

91 files changed

+276
-276
lines changed

Some content is hidden

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

91 files changed

+276
-276
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
All should have PrivateAssets="All" set so they don't become package dependencies
153153
-->
154154
<ItemGroup>
155-
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20220404.4" PrivateAssets="All" />
155+
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20220405.2" PrivateAssets="All" />
156156
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20220111.2" PrivateAssets="All" />
157157
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All" />
158158
<PackageReference Update="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" PrivateAssets="All" />

sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecurityPolicyData.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/PatchableAfdSecurityPolicyData.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyProperties.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyPropertiesParameters.Serialization.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyPropertiesParameters.cs

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallParameters.Serialization.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Models/SecurityPolicyWebApplicationFirewallParameters.cs

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/tests/Helper/ResourceDataHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public static void AssertValidAfdSecurityPolicy(AfdSecurityPolicyResource model,
488488
Assert.AreEqual(model.Data.ResourceType, getResult.Data.ResourceType);
489489
Assert.AreEqual(model.Data.ProvisioningState, getResult.Data.ProvisioningState);
490490
Assert.AreEqual(model.Data.DeploymentStatus, getResult.Data.DeploymentStatus);
491-
Assert.AreEqual(model.Data.Parameters.SecurityPolicyType, getResult.Data.Parameters.SecurityPolicyType);
491+
Assert.AreEqual(model.Data.Parameters.PolicyType, getResult.Data.Parameters.PolicyType);
492492
}
493493

494494
public static void AssertAfdSecurityPolicyUpdate(AfdSecurityPolicyResource updatedSecurityPolicy, PatchableAfdSecurityPolicyData updateOptions)

sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4305,8 +4305,8 @@ public partial class ResourceSkuRestrictions
43054305
{
43064306
internal ResourceSkuRestrictions() { }
43074307
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionsReasonCode? ReasonCode { get { throw null; } }
4308-
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionsType? ResourceSkuRestrictionsType { get { throw null; } }
43094308
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionInfo RestrictionInfo { get { throw null; } }
4309+
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionsType? RestrictionsType { get { throw null; } }
43104310
public System.Collections.Generic.IReadOnlyList<string> Values { get { throw null; } }
43114311
}
43124312
public enum ResourceSkuRestrictionsReasonCode
@@ -4581,8 +4581,8 @@ public SharingProfile() { }
45814581
public partial class SharingProfileGroup
45824582
{
45834583
public SharingProfileGroup() { }
4584+
public Azure.ResourceManager.Compute.Models.SharingProfileGroupTypes? GroupType { get { throw null; } set { } }
45844585
public System.Collections.Generic.IList<string> Ids { get { throw null; } }
4585-
public Azure.ResourceManager.Compute.Models.SharingProfileGroupTypes? SharingProfileGroupType { get { throw null; } set { } }
45864586
}
45874587
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
45884588
public readonly partial struct SharingProfileGroupTypes : System.IEquatable<Azure.ResourceManager.Compute.Models.SharingProfileGroupTypes>

0 commit comments

Comments
 (0)