EventGridModelFactory.PolicyInsightsPolicyStateDeletedEventData 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 PolicyInsightsPolicyStateDeletedEventData.
public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData PolicyInsightsPolicyStateDeletedEventData (DateTimeOffset? timestamp = default, string policyAssignmentId = default, string policyDefinitionId = default, string policyDefinitionReferenceId = default, string complianceState = default, string subscriptionId = default, string complianceReasonCode = default);
static member PolicyInsightsPolicyStateDeletedEventData : Nullable<DateTimeOffset> * string * string * string * string * string * string -> Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData
Public Shared Function PolicyInsightsPolicyStateDeletedEventData (Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional policyAssignmentId As String = Nothing, Optional policyDefinitionId As String = Nothing, Optional policyDefinitionReferenceId As String = Nothing, Optional complianceState As String = Nothing, Optional subscriptionId As String = Nothing, Optional complianceReasonCode As String = Nothing) As PolicyInsightsPolicyStateDeletedEventData
Parameters
- timestamp
- Nullable<DateTimeOffset>
The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ.
- policyAssignmentId
- String
The resource ID of the policy assignment.
- policyDefinitionId
- String
The resource ID of the policy definition.
- policyDefinitionReferenceId
- String
The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty.
- complianceState
- String
The compliance state of the resource with respect to the policy assignment.
- subscriptionId
- String
The subscription ID of the resource.
- complianceReasonCode
- String
The compliance reason code. May be empty.
Returns
A new PolicyInsightsPolicyStateDeletedEventData instance for mocking.
Applies to
Azure SDK for .NET