ArmPolicyInsightsModelFactory.PolicyEvent Method
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.
Initializes a new instance of PolicyEvent.
public static Azure.ResourceManager.PolicyInsights.Models.PolicyEvent PolicyEvent (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, Guid? tenantId = default, string principalOid = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PolicyInsights.Models.ComponentEventDetails> components = default, System.Collections.Generic.IReadOnlyDictionary<string,BinaryData> additionalProperties = default);
static member PolicyEvent : 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 * Nullable<Guid> * string * seq<Azure.ResourceManager.PolicyInsights.Models.ComponentEventDetails> * System.Collections.Generic.IReadOnlyDictionary<string, BinaryData> -> Azure.ResourceManager.PolicyInsights.Models.PolicyEvent
Public Shared Function PolicyEvent (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 tenantId As Nullable(Of Guid) = Nothing, Optional principalOid As String = Nothing, Optional components As IEnumerable(Of ComponentEventDetails) = Nothing, Optional additionalProperties As IReadOnlyDictionary(Of String, BinaryData) = Nothing) As PolicyEvent
Parameters
- odataId
- String
OData entity ID; always set to null since policy event 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 event record.
- resourceId
- ResourceIdentifier
Resource ID.
- policyAssignmentId
- ResourceIdentifier
Policy assignment ID.
- policyDefinitionId
- ResourceIdentifier
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.
- 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.
- principalOid
- String
Principal object ID for the user who initiated the resource operation that triggered the policy event.
- components
- IEnumerable<ComponentEventDetails>
Components events records populated only when URL contains $expand=components clause.
- additionalProperties
- IReadOnlyDictionary<String,BinaryData>
Additional Properties.
Returns
A new PolicyEvent instance for mocking.
Applies to
Azure SDK for .NET