Skip to content

Commit

Permalink
[PolicyInsights] Resolve review comments and support partial resource (
Browse files Browse the repository at this point in the history
…#31482)

* resolve policy insights comments

* update api

* use customization to support partial resource

* push unfinished change

* resolve comments

* resolve comments

* update changelog

* re-trigger pipeline
  • Loading branch information
Yao725 authored Sep 30, 2022
1 parent 2e369f1 commit b717202
Show file tree
Hide file tree
Showing 56 changed files with 3,238 additions and 3,193 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This is the first stable release of the Guest Configuration Management library.
- Renamed the model `ConfigurationInfo` to `GuestConfigurationInfo`.
- Renamed the model `ConfigurationParameter` to `GuestConfigurationParameter`.
- Renamed the method `GetGuestConfigurationAssignments` to `GetAllGuestConfigurationAssignmentData`.
- Corrected the extension methods `GetGuestConfigurationHcrpAssignment`, `GetGuestConfigurationHcrpAssignments`, `GetGuestConfigurationVmAssignment`, `GetGuestConfigurationVmAssignments`, `GetGuestConfigurationVmssAssignment` and `GetGuestConfigurationVmssAssignments` to make them extend from `ArmClient`.

## 1.0.0-beta.2 (2022-09-09)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Polishing since last public beta release:
- Prepended `Policy` prefix to all single / simple model names.
- Corrected the format of all `ResourceIdentifier` type properties / parameters.
- Corrected the format of all `AzureLocation` type properties / parameters.
- Corrected the suffix of `DateTimeOffset` properties / parameters.
- Optimized the name of some models and functions.
- Corrected the extended types of extension methods related to `PolicyAssignmentResource`, `SubscriptionPolicyDefinitionResource` and `SubscriptionPolicySetDefinitionResource`.

### Other Changes

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System.Threading;
using Azure.Core;
using Azure.ResourceManager.PolicyInsights.Models;

namespace Azure.ResourceManager.PolicyInsights
{
/// <summary> A class to add extension methods to ResourceGroupResource. </summary>
[CodeGenSuppress("GetQueryResultsForResourceGroupLevelPolicyAssignmentPolicyEvents", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForResourceGroupLevelPolicyAssignmentPolicyEventsAsync", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForResourceGroupLevelPolicyAssignmentPolicyStates", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForResourceGroupLevelPolicyAssignmentPolicyStatesAsync", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForResourceGroupLevelPolicyAssignmentPolicyStates", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForResourceGroupLevelPolicyAssignmentPolicyStatesAsync", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
internal partial class ResourceGroupResourceExtensionClient : ArmResource
{
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System.Threading;
using Azure.Core;
using Azure.ResourceManager.PolicyInsights.Models;

namespace Azure.ResourceManager.PolicyInsights
{
/// <summary> A class to add extension methods to SubscriptionResource. </summary>
[CodeGenSuppress("GetQueryResultsForPolicyDefinitionPolicyEvents", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForPolicyDefinitionPolicyEventsAsync", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForPolicySetDefinitionPolicyEvents", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForPolicySetDefinitionPolicyEventsAsync", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForSubscriptionLevelPolicyAssignmentPolicyEvents", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForSubscriptionLevelPolicyAssignmentPolicyEventsAsync", typeof(PolicyEventType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForPolicyDefinitionPolicyStates", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForPolicyDefinitionPolicyStatesAsync", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForPolicySetDefinitionPolicyStates", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForPolicySetDefinitionPolicyStatesAsync", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForSubscriptionLevelPolicyAssignmentPolicyStates", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("GetQueryResultsForSubscriptionLevelPolicyAssignmentPolicyStatesAsync", typeof(PolicyStateType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForPolicyDefinitionPolicyStates", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForPolicyDefinitionPolicyStatesAsync", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForPolicySetDefinitionPolicyStates", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForPolicySetDefinitionPolicyStatesAsync", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForSubscriptionLevelPolicyAssignmentPolicyStates", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
[CodeGenSuppress("SummarizeForSubscriptionLevelPolicyAssignmentPolicyStatesAsync", typeof(PolicyStateSummaryType), typeof(string), typeof(PolicyQuerySettings), typeof(CancellationToken))]
internal partial class SubscriptionResourceExtensionClient : ArmResource
{
}
}

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

Loading

0 comments on commit b717202

Please sign in to comment.