PolicyState Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PolicyState() |
Initializes a new instance of the PolicyState class. |
PolicyState(IDictionary<String,Object>, String, String, Nullable<DateTime>, String, String, String, String, Nullable<Boolean>, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, PolicyEvaluationDetails, IList<String>, IList<ComponentStateDetails>, String, String, String) |
Initializes a new instance of the PolicyState class. |
PolicyState()
Initializes a new instance of the PolicyState class.
public PolicyState ();
Public Sub New ()
Applies to
PolicyState(IDictionary<String,Object>, String, String, Nullable<DateTime>, String, String, String, String, Nullable<Boolean>, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, PolicyEvaluationDetails, IList<String>, IList<ComponentStateDetails>, String, String, String)
Initializes a new instance of the PolicyState class.
public PolicyState (System.Collections.Generic.IDictionary<string,object> additionalProperties = default, string odataid = default, string odatacontext = default, DateTime? timestamp = default, string resourceId = default, string policyAssignmentId = default, string policyDefinitionId = default, string effectiveParameters = default, bool? isCompliant = default, string subscriptionId = default, string resourceType = default, string 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, string policySetDefinitionId = default, string policySetDefinitionName = default, string policySetDefinitionOwner = default, string policySetDefinitionCategory = default, string policySetDefinitionParameters = default, string managementGroupIds = default, string policyDefinitionReferenceId = default, string complianceState = default, Microsoft.Azure.Management.PolicyInsights.Models.PolicyEvaluationDetails policyEvaluationDetails = default, System.Collections.Generic.IList<string> policyDefinitionGroupNames = default, System.Collections.Generic.IList<Microsoft.Azure.Management.PolicyInsights.Models.ComponentStateDetails> components = default, string policyDefinitionVersion = default, string policySetDefinitionVersion = default, string policyAssignmentVersion = default);
new Microsoft.Azure.Management.PolicyInsights.Models.PolicyState : System.Collections.Generic.IDictionary<string, obj> * string * string * Nullable<DateTime> * string * string * string * string * Nullable<bool> * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * Microsoft.Azure.Management.PolicyInsights.Models.PolicyEvaluationDetails * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.PolicyInsights.Models.ComponentStateDetails> * string * string * string -> Microsoft.Azure.Management.PolicyInsights.Models.PolicyState
Public Sub New (Optional additionalProperties As IDictionary(Of String, Object) = Nothing, Optional odataid As String = Nothing, Optional odatacontext As String = Nothing, Optional timestamp As Nullable(Of DateTime) = Nothing, Optional resourceId As String = Nothing, Optional policyAssignmentId As String = Nothing, Optional policyDefinitionId As String = Nothing, Optional effectiveParameters As String = Nothing, Optional isCompliant As Nullable(Of Boolean) = Nothing, Optional subscriptionId As String = Nothing, Optional resourceType As String = Nothing, Optional resourceLocation As String = 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 String = 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 IList(Of String) = Nothing, Optional components As IList(Of ComponentStateDetails) = Nothing, Optional policyDefinitionVersion As String = Nothing, Optional policySetDefinitionVersion As String = Nothing, Optional policyAssignmentVersion As String = Nothing)
Parameters
- additionalProperties
- IDictionary<String,Object>
Unmatched properties from the message are deserialized this collection
- 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.
- resourceId
- String
Resource ID.
- policyAssignmentId
- String
Policy assignment ID.
- policyDefinitionId
- String
Policy definition ID.
- effectiveParameters
- String
Effective parameters for the policy assignment.
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.
- resourceType
- String
Resource type.
- resourceLocation
- String
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
- String
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.
- components
- IList<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.
Applies to
Azure SDK for .NET