Share via


ArmPolicyInsightsModelFactory.PolicySummary Method

Definition

Initializes a new instance of PolicySummary.

public static Azure.ResourceManager.PolicyInsights.Models.PolicySummary PolicySummary (string odataId = default, string odataContext = default, Azure.ResourceManager.PolicyInsights.Models.PolicySummaryResults results = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PolicyInsights.Models.PolicyAssignmentSummary> policyAssignments = default);
static member PolicySummary : string * string * Azure.ResourceManager.PolicyInsights.Models.PolicySummaryResults * seq<Azure.ResourceManager.PolicyInsights.Models.PolicyAssignmentSummary> -> Azure.ResourceManager.PolicyInsights.Models.PolicySummary
Public Shared Function PolicySummary (Optional odataId As String = Nothing, Optional odataContext As String = Nothing, Optional results As PolicySummaryResults = Nothing, Optional policyAssignments As IEnumerable(Of PolicyAssignmentSummary) = Nothing) As PolicySummary

Parameters

odataId
String

OData entity ID; always set to null since summaries do not have an entity ID.

odataContext
String

OData context string; used by OData clients to resolve type information based on metadata.

results
PolicySummaryResults

Compliance summary for all policy assignments.

policyAssignments
IEnumerable<PolicyAssignmentSummary>

Policy assignments summary.

Returns

A new PolicySummary instance for mocking.

Applies to