Skip to content

Commit c4f1329

Browse files
Remove policy exemption and tweak some model names (Azure#27865)
* update readme * remove the policyExemptions and tweak some model names * update api * revert rename changes
1 parent ca8d99d commit c4f1329

15 files changed

+157
-2275
lines changed

sdk/resourcemanager/Azure.ResourceManager/api/Azure.ResourceManager.netstandard2.0.cs

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public ArmClient(Azure.Core.TokenCredential credential, string defaultSubscripti
1818
public virtual Azure.ResourceManager.ManagementGroups.ManagementGroupCollection GetManagementGroups() { throw null; }
1919
public virtual Azure.ResourceManager.Resources.ManagementLockResource GetManagementLockResource(Azure.Core.ResourceIdentifier id) { throw null; }
2020
public virtual Azure.ResourceManager.Resources.PolicyAssignmentResource GetPolicyAssignmentResource(Azure.Core.ResourceIdentifier id) { throw null; }
21-
public virtual Azure.ResourceManager.Resources.PolicyExemptionResource GetPolicyExemptionResource(Azure.Core.ResourceIdentifier id) { throw null; }
2221
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
2322
public virtual T GetResourceClient<T>(System.Func<T> resourceFactory) where T : Azure.ResourceManager.ArmResource { throw null; }
2423
public virtual Azure.ResourceManager.Resources.ResourceGroupResource GetResourceGroupResource(Azure.Core.ResourceIdentifier id) { throw null; }
@@ -105,9 +104,6 @@ protected internal ArmResource(Azure.ResourceManager.ArmClient client, Azure.Cor
105104
public virtual Azure.Response<Azure.ResourceManager.Resources.PolicyAssignmentResource> GetPolicyAssignment(string policyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
106105
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.PolicyAssignmentResource>> GetPolicyAssignmentAsync(string policyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
107106
public virtual Azure.ResourceManager.Resources.PolicyAssignmentCollection GetPolicyAssignments() { throw null; }
108-
public virtual Azure.Response<Azure.ResourceManager.Resources.PolicyExemptionResource> GetPolicyExemption(string policyExemptionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
109-
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.PolicyExemptionResource>> GetPolicyExemptionAsync(string policyExemptionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
110-
public virtual Azure.ResourceManager.Resources.PolicyExemptionCollection GetPolicyExemptions() { throw null; }
111107
public virtual Azure.ResourceManager.Resources.TagResource GetTagResource() { throw null; }
112108
protected virtual bool TryGetApiVersion(Azure.Core.ResourceType resourceType, out string apiVersion) { throw null; }
113109
}
@@ -737,44 +733,6 @@ public PolicyDefinitionData() { }
737733
public System.BinaryData PolicyRule { get { throw null; } set { } }
738734
public Azure.ResourceManager.Resources.Models.PolicyType? PolicyType { get { throw null; } set { } }
739735
}
740-
public partial class PolicyExemptionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Resources.PolicyExemptionResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.PolicyExemptionResource>, System.Collections.IEnumerable
741-
{
742-
protected PolicyExemptionCollection() { }
743-
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.PolicyExemptionResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string policyExemptionName, Azure.ResourceManager.Resources.PolicyExemptionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
744-
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.PolicyExemptionResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string policyExemptionName, Azure.ResourceManager.Resources.PolicyExemptionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
745-
public virtual Azure.Response<bool> Exists(string policyExemptionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
746-
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync(string policyExemptionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
747-
public virtual Azure.Response<Azure.ResourceManager.Resources.PolicyExemptionResource> Get(string policyExemptionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
748-
public virtual Azure.Pageable<Azure.ResourceManager.Resources.PolicyExemptionResource> GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
749-
public virtual Azure.AsyncPageable<Azure.ResourceManager.Resources.PolicyExemptionResource> GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
750-
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.PolicyExemptionResource>> GetAsync(string policyExemptionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
751-
System.Collections.Generic.IAsyncEnumerator<Azure.ResourceManager.Resources.PolicyExemptionResource> System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Resources.PolicyExemptionResource>.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
752-
System.Collections.Generic.IEnumerator<Azure.ResourceManager.Resources.PolicyExemptionResource> System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.PolicyExemptionResource>.GetEnumerator() { throw null; }
753-
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
754-
}
755-
public partial class PolicyExemptionData : Azure.ResourceManager.Models.ResourceData
756-
{
757-
public PolicyExemptionData(string policyAssignmentId, Azure.ResourceManager.Resources.Models.ExemptionCategory exemptionCategory) { }
758-
public string Description { get { throw null; } set { } }
759-
public string DisplayName { get { throw null; } set { } }
760-
public Azure.ResourceManager.Resources.Models.ExemptionCategory ExemptionCategory { get { throw null; } set { } }
761-
public System.DateTimeOffset? ExpiresOn { get { throw null; } set { } }
762-
public System.BinaryData Metadata { get { throw null; } set { } }
763-
public string PolicyAssignmentId { get { throw null; } set { } }
764-
public System.Collections.Generic.IList<string> PolicyDefinitionReferenceIds { get { throw null; } }
765-
}
766-
public partial class PolicyExemptionResource : Azure.ResourceManager.ArmResource
767-
{
768-
public static readonly Azure.Core.ResourceType ResourceType;
769-
protected PolicyExemptionResource() { }
770-
public virtual Azure.ResourceManager.Resources.PolicyExemptionData Data { get { throw null; } }
771-
public virtual bool HasData { get { throw null; } }
772-
public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string scope, string policyExemptionName) { throw null; }
773-
public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
774-
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
775-
public virtual Azure.Response<Azure.ResourceManager.Resources.PolicyExemptionResource> Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
776-
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.PolicyExemptionResource>> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
777-
}
778736
public partial class PolicySetDefinitionData : Azure.ResourceManager.Models.ResourceData
779737
{
780738
public PolicySetDefinitionData() { }
@@ -1259,24 +1217,6 @@ internal ErrorAdditionalInfo() { }
12591217
public string ErrorAdditionalInfoType { get { throw null; } }
12601218
public System.BinaryData Info { get { throw null; } }
12611219
}
1262-
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
1263-
public readonly partial struct ExemptionCategory : System.IEquatable<Azure.ResourceManager.Resources.Models.ExemptionCategory>
1264-
{
1265-
private readonly object _dummy;
1266-
private readonly int _dummyPrimitive;
1267-
public ExemptionCategory(string value) { throw null; }
1268-
public static Azure.ResourceManager.Resources.Models.ExemptionCategory Mitigated { get { throw null; } }
1269-
public static Azure.ResourceManager.Resources.Models.ExemptionCategory Waiver { get { throw null; } }
1270-
public bool Equals(Azure.ResourceManager.Resources.Models.ExemptionCategory other) { throw null; }
1271-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1272-
public override bool Equals(object obj) { throw null; }
1273-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1274-
public override int GetHashCode() { throw null; }
1275-
public static bool operator ==(Azure.ResourceManager.Resources.Models.ExemptionCategory left, Azure.ResourceManager.Resources.Models.ExemptionCategory right) { throw null; }
1276-
public static implicit operator Azure.ResourceManager.Resources.Models.ExemptionCategory (string value) { throw null; }
1277-
public static bool operator !=(Azure.ResourceManager.Resources.Models.ExemptionCategory left, Azure.ResourceManager.Resources.Models.ExemptionCategory right) { throw null; }
1278-
public override string ToString() { throw null; }
1279-
}
12801220
public partial class ExportTemplate
12811221
{
12821222
public ExportTemplate() { }

sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Extensions/ArmClient.cs

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

sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Extensions/ArmResource.cs

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

sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExemptionCategory.cs

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)