Skip to content

Commit

Permalink
feat(mgmt): auto-simplify Type property names (Azure#27869)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: azure-sdk <[email protected]>
  • Loading branch information
3 people authored Apr 5, 2022
1 parent cc42eaa commit 135e244
Show file tree
Hide file tree
Showing 91 changed files with 276 additions and 276 deletions.
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20220404.4" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20220405.2" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20220111.2" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" PrivateAssets="All" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public static void AssertValidAfdSecurityPolicy(AfdSecurityPolicyResource model,
Assert.AreEqual(model.Data.ResourceType, getResult.Data.ResourceType);
Assert.AreEqual(model.Data.ProvisioningState, getResult.Data.ProvisioningState);
Assert.AreEqual(model.Data.DeploymentStatus, getResult.Data.DeploymentStatus);
Assert.AreEqual(model.Data.Parameters.SecurityPolicyType, getResult.Data.Parameters.SecurityPolicyType);
Assert.AreEqual(model.Data.Parameters.PolicyType, getResult.Data.Parameters.PolicyType);
}

public static void AssertAfdSecurityPolicyUpdate(AfdSecurityPolicyResource updatedSecurityPolicy, PatchableAfdSecurityPolicyData updateOptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4305,8 +4305,8 @@ public partial class ResourceSkuRestrictions
{
internal ResourceSkuRestrictions() { }
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionsReasonCode? ReasonCode { get { throw null; } }
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionsType? ResourceSkuRestrictionsType { get { throw null; } }
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionInfo RestrictionInfo { get { throw null; } }
public Azure.ResourceManager.Compute.Models.ResourceSkuRestrictionsType? RestrictionsType { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<string> Values { get { throw null; } }
}
public enum ResourceSkuRestrictionsReasonCode
Expand Down Expand Up @@ -4581,8 +4581,8 @@ public SharingProfile() { }
public partial class SharingProfileGroup
{
public SharingProfileGroup() { }
public Azure.ResourceManager.Compute.Models.SharingProfileGroupTypes? GroupType { get { throw null; } set { } }
public System.Collections.Generic.IList<string> Ids { get { throw null; } }
public Azure.ResourceManager.Compute.Models.SharingProfileGroupTypes? SharingProfileGroupType { get { throw null; } set { } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct SharingProfileGroupTypes : System.IEquatable<Azure.ResourceManager.Compute.Models.SharingProfileGroupTypes>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 135e244

Please sign in to comment.