Share via


ArmPolicyInsightsModelFactory.PolicyState Method

Definition

Initializes a new instance of PolicyState.

public static Azure.ResourceManager.PolicyInsights.Models.PolicyState PolicyState (string odataId = default, string odataContext = default, DateTimeOffset? timestamp = default, Azure.Core.ResourceIdentifier resourceId = default, Azure.Core.ResourceIdentifier policyAssignmentId = default, Azure.Core.ResourceIdentifier policyDefinitionId = default, string effectiveParameters = default, bool? isCompliant = default, string subscriptionId = default, string resourceTypeString = default, Azure.Core.AzureLocation? resourceLocation = default, string resourceGroup = default, string resourceTags = default, string policyAssignmentName = default, string policyAssignmentOwner = default, string policyAssignmentParameters = default, string policyAssignmentScope = default, string policyDefinitionName = default, string policyDefinitionAction = default, string policyDefinitionCategory = default, Azure.Core.ResourceIdentifier policySetDefinitionId = default, string policySetDefinitionName = default, string policySetDefinitionOwner = default, string policySetDefinitionCategory = default, string policySetDefinitionParameters = default, string managementGroupIds = default, string policyDefinitionReferenceId = default, string complianceState = default, Azure.ResourceManager.PolicyInsights.Models.PolicyEvaluationDetails policyEvaluationDetails = default, System.Collections.Generic.IEnumerable<string> policyDefinitionGroupNames = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PolicyInsights.Models.ComponentStateDetails> components = default, string policyDefinitionVersion = default, string policySetDefinitionVersion = default, string policyAssignmentVersion = default, System.Collections.Generic.IReadOnlyDictionary<string,BinaryData> additionalProperties = default);
static member PolicyState : string * string * Nullable<DateTimeOffset> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * Nullable<bool> * string * string * Nullable<Azure.Core.AzureLocation> * string * string * string * string * string * string * string * string * string * Azure.Core.ResourceIdentifier * string * string * string * string * string * string * string * Azure.ResourceManager.PolicyInsights.Models.PolicyEvaluationDetails * seq<string> * seq<Azure.ResourceManager.PolicyInsights.Models.ComponentStateDetails> * string * string * string * System.Collections.Generic.IReadOnlyDictionary<string, BinaryData> -> Azure.ResourceManager.PolicyInsights.Models.PolicyState
Public Shared Function PolicyState (Optional odataId As String = Nothing, Optional odataContext As String = Nothing, Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional policyAssignmentId As ResourceIdentifier = Nothing, Optional policyDefinitionId As ResourceIdentifier = Nothing, Optional effectiveParameters As String = Nothing, Optional isCompliant As Nullable(Of Boolean) = Nothing, Optional subscriptionId As String = Nothing, Optional resourceTypeString As String = Nothing, Optional resourceLocation As Nullable(Of AzureLocation) = Nothing, Optional resourceGroup As String = Nothing, Optional resourceTags As String = Nothing, Optional policyAssignmentName As String = Nothing, Optional policyAssignmentOwner As String = Nothing, Optional policyAssignmentParameters As String = Nothing, Optional policyAssignmentScope As String = Nothing, Optional policyDefinitionName As String = Nothing, Optional policyDefinitionAction As String = Nothing, Optional policyDefinitionCategory As String = Nothing, Optional policySetDefinitionId As ResourceIdentifier = Nothing, Optional policySetDefinitionName As String = Nothing, Optional policySetDefinitionOwner As String = Nothing, Optional policySetDefinitionCategory As String = Nothing, Optional policySetDefinitionParameters As String = Nothing, Optional managementGroupIds As String = Nothing, Optional policyDefinitionReferenceId As String = Nothing, Optional complianceState As String = Nothing, Optional policyEvaluationDetails As PolicyEvaluationDetails = Nothing, Optional policyDefinitionGroupNames As IEnumerable(Of String) = Nothing, Optional components As IEnumerable(Of ComponentStateDetails) = Nothing, Optional policyDefinitionVersion As String = Nothing, Optional policySetDefinitionVersion As String = Nothing, Optional policyAssignmentVersion As String = Nothing, Optional additionalProperties As IReadOnlyDictionary(Of String, BinaryData) = Nothing) As PolicyState

Parameters

odataId
String

OData entity ID; always set to null since policy state records do not have an entity ID.

odataContext
String

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

timestamp
Nullable<DateTimeOffset>

Timestamp for the policy state record.

resourceId
ResourceIdentifier

Resource ID.

policyAssignmentId
ResourceIdentifier

Policy assignment ID.

policyDefinitionId
ResourceIdentifier

Policy definition ID.

effectiveParameters
String

Effective parameters for the policy assignment.

isCompliant
Nullable<Boolean>

Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.

subscriptionId
String

Subscription ID.

resourceTypeString
String

Resource type.

resourceLocation
Nullable<AzureLocation>

Resource location.

resourceGroup
String

Resource group name.

resourceTags
String

List of resource tags.

policyAssignmentName
String

Policy assignment name.

policyAssignmentOwner
String

Policy assignment owner.

policyAssignmentParameters
String

Policy assignment parameters.

policyAssignmentScope
String

Policy assignment scope.

policyDefinitionName
String

Policy definition name.

policyDefinitionAction
String

Policy definition action, i.e. effect.

policyDefinitionCategory
String

Policy definition category.

policySetDefinitionId
ResourceIdentifier

Policy set definition ID, if the policy assignment is for a policy set.

policySetDefinitionName
String

Policy set definition name, if the policy assignment is for a policy set.

policySetDefinitionOwner
String

Policy set definition owner, if the policy assignment is for a policy set.

policySetDefinitionCategory
String

Policy set definition category, if the policy assignment is for a policy set.

policySetDefinitionParameters
String

Policy set definition parameters, if the policy assignment is for a policy set.

managementGroupIds
String

Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.

policyDefinitionReferenceId
String

Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.

complianceState
String

Compliance state of the resource.

policyEvaluationDetails
PolicyEvaluationDetails

Policy evaluation details.

policyDefinitionGroupNames
IEnumerable<String>

Policy definition group names.

components
IEnumerable<ComponentStateDetails>

Components state compliance records populated only when URL contains $expand=components clause.

policyDefinitionVersion
String

Evaluated policy definition version.

policySetDefinitionVersion
String

Evaluated policy set definition version.

policyAssignmentVersion
String

Evaluated policy assignment version.

additionalProperties
IReadOnlyDictionary<String,BinaryData>

Additional Properties.

Returns

A new PolicyState instance for mocking.

Applies to