Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions eng/mgmt/mgmtmetadata/policyinsights_resource-manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Installing AutoRest version: latest
AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/policyinsights/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\work\apiReview\azure-sdk-for-net\sdk
2019-12-03 20:56:25 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: df4187f875393a39197055e879ddd0c2ae63e84c
AutoRest information
Requested version: latest
Bootstrapper version: autorest@2.0.4407
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>PolicyInsights_2018-07-01-preview;PolicyInsights_2018-04-04;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>PolicyInsights_2019-10-01;PolicyInsights_2018-04-04;PolicyInsights_2018-07-01-preview;PolicyInsights_2019-07-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,10 @@ public partial interface IPolicyInsightsClient : System.IDisposable
/// </summary>
IOperations Operations { get; }

/// <summary>
/// Gets the IPolicyMetadataOperations.
/// </summary>
IPolicyMetadataOperations PolicyMetadata { get; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.PolicyInsights
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// PolicyMetadataOperations operations.
/// </summary>
public partial interface IPolicyMetadataOperations
{
/// <summary>
/// Get policy metadata resource.
/// </summary>
/// <param name='resourceName'>
/// The name of the policy metadata resource.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PolicyMetadata>> GetResourceWithHttpMessagesAsync(string resourceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get a list of the policy metadata resources.
/// </summary>
/// <param name='queryOptions'>
/// Additional parameters for the operation
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<SlimPolicyMetadata>>> ListWithHttpMessagesAsync(QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get a list of the policy metadata resources.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<SlimPolicyMetadata>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -515,28 +515,5 @@ public partial interface IPolicyStatesOperations
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<SummarizeResults>> SummarizeForResourceGroupLevelPolicyAssignmentWithHttpMessagesAsync(string subscriptionId, string resourceGroupName, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets OData metadata XML document.
/// </summary>
/// <param name='scope'>
/// A valid scope, i.e. management group, subscription, resource group,
/// or resource ID. Scope used has no effect on metadata returned.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="QueryFailureException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<string>> GetMetadataWithHttpMessagesAsync(string scope, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.PolicyInsights.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The compliance state rollup.
/// </summary>
public partial class ComplianceDetail
{
/// <summary>
/// Initializes a new instance of the ComplianceDetail class.
/// </summary>
public ComplianceDetail()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ComplianceDetail class.
/// </summary>
/// <param name="complianceState">The compliance state.</param>
/// <param name="count">Summarized count value for this compliance
/// state.</param>
public ComplianceDetail(string complianceState = default(string), int? count = default(int?))
{
ComplianceState = complianceState;
Count = count;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the compliance state.
/// </summary>
[JsonProperty(PropertyName = "complianceState")]
public string ComplianceState { get; set; }

/// <summary>
/// Gets or sets summarized count value for this compliance state.
/// </summary>
[JsonProperty(PropertyName = "count")]
public int? Count { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ public PolicyAssignmentSummary()
/// <param name="policyAssignmentId">Policy assignment ID.</param>
/// <param name="policySetDefinitionId">Policy set definition ID, if
/// the policy assignment is for a policy set.</param>
/// <param name="results">Non-compliance summary for the policy
/// <param name="results">Compliance summary for the policy
/// assignment.</param>
/// <param name="policyDefinitions">Policy definitions summary.</param>
public PolicyAssignmentSummary(string policyAssignmentId = default(string), string policySetDefinitionId = default(string), SummaryResults results = default(SummaryResults), IList<PolicyDefinitionSummary> policyDefinitions = default(IList<PolicyDefinitionSummary>))
/// <param name="policyGroups">Policy definition group summary.</param>
public PolicyAssignmentSummary(string policyAssignmentId = default(string), string policySetDefinitionId = default(string), SummaryResults results = default(SummaryResults), IList<PolicyDefinitionSummary> policyDefinitions = default(IList<PolicyDefinitionSummary>), IList<PolicyGroupSummary> policyGroups = default(IList<PolicyGroupSummary>))
{
PolicyAssignmentId = policyAssignmentId;
PolicySetDefinitionId = policySetDefinitionId;
Results = results;
PolicyDefinitions = policyDefinitions;
PolicyGroups = policyGroups;
CustomInit();
}

Expand All @@ -65,7 +67,7 @@ public PolicyAssignmentSummary()
public string PolicySetDefinitionId { get; set; }

/// <summary>
/// Gets or sets non-compliance summary for the policy assignment.
/// Gets or sets compliance summary for the policy assignment.
/// </summary>
[JsonProperty(PropertyName = "results")]
public SummaryResults Results { get; set; }
Expand All @@ -76,6 +78,12 @@ public PolicyAssignmentSummary()
[JsonProperty(PropertyName = "policyDefinitions")]
public IList<PolicyDefinitionSummary> PolicyDefinitions { get; set; }

/// <summary>
/// Gets or sets policy definition group summary.
/// </summary>
[JsonProperty(PropertyName = "policyGroups")]
public IList<PolicyGroupSummary> PolicyGroups { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -98,6 +106,16 @@ public virtual void Validate()
}
}
}
if (PolicyGroups != null)
{
foreach (var element1 in PolicyGroups)
{
if (element1 != null)
{
element1.Validate();
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
namespace Microsoft.Azure.Management.PolicyInsights.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
Expand All @@ -32,14 +34,17 @@ public PolicyDefinitionSummary()
/// <param name="policyDefinitionId">Policy definition ID.</param>
/// <param name="policyDefinitionReferenceId">Policy definition
/// reference ID.</param>
/// <param name="policyDefinitionGroupNames">Policy definition group
/// names.</param>
/// <param name="effect">Policy effect, i.e. policy definition
/// action.</param>
/// <param name="results">Non-compliance summary for the policy
/// <param name="results">Compliance summary for the policy
/// definition.</param>
public PolicyDefinitionSummary(string policyDefinitionId = default(string), string policyDefinitionReferenceId = default(string), string effect = default(string), SummaryResults results = default(SummaryResults))
public PolicyDefinitionSummary(string policyDefinitionId = default(string), string policyDefinitionReferenceId = default(string), IList<string> policyDefinitionGroupNames = default(IList<string>), string effect = default(string), SummaryResults results = default(SummaryResults))
{
PolicyDefinitionId = policyDefinitionId;
PolicyDefinitionReferenceId = policyDefinitionReferenceId;
PolicyDefinitionGroupNames = policyDefinitionGroupNames;
Effect = effect;
Results = results;
CustomInit();
Expand All @@ -62,14 +67,20 @@ public PolicyDefinitionSummary()
[JsonProperty(PropertyName = "policyDefinitionReferenceId")]
public string PolicyDefinitionReferenceId { get; set; }

/// <summary>
/// Gets or sets policy definition group names.
/// </summary>
[JsonProperty(PropertyName = "policyDefinitionGroupNames")]
public IList<string> PolicyDefinitionGroupNames { get; set; }

/// <summary>
/// Gets or sets policy effect, i.e. policy definition action.
/// </summary>
[JsonProperty(PropertyName = "effect")]
public string Effect { get; set; }

/// <summary>
/// Gets or sets non-compliance summary for the policy definition.
/// Gets or sets compliance summary for the policy definition.
/// </summary>
[JsonProperty(PropertyName = "results")]
public SummaryResults Results { get; set; }
Expand Down
Loading