다음을 통해 공유


ArmPolicyInsightsModelFactory.PolicyTrackedResourceRecord Method

Definition

Initializes a new instance of PolicyTrackedResourceRecord.

public static Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord PolicyTrackedResourceRecord (Azure.Core.ResourceIdentifier trackedResourceId = default, Azure.ResourceManager.PolicyInsights.Models.PolicyDetails policyDetails = default, Azure.ResourceManager.PolicyInsights.Models.TrackedResourceModificationDetails createdBy = default, Azure.ResourceManager.PolicyInsights.Models.TrackedResourceModificationDetails lastModifiedBy = default, DateTimeOffset? lastUpdateOn = default);
static member PolicyTrackedResourceRecord : Azure.Core.ResourceIdentifier * Azure.ResourceManager.PolicyInsights.Models.PolicyDetails * Azure.ResourceManager.PolicyInsights.Models.TrackedResourceModificationDetails * Azure.ResourceManager.PolicyInsights.Models.TrackedResourceModificationDetails * Nullable<DateTimeOffset> -> Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord
Public Shared Function PolicyTrackedResourceRecord (Optional trackedResourceId As ResourceIdentifier = Nothing, Optional policyDetails As PolicyDetails = Nothing, Optional createdBy As TrackedResourceModificationDetails = Nothing, Optional lastModifiedBy As TrackedResourceModificationDetails = Nothing, Optional lastUpdateOn As Nullable(Of DateTimeOffset) = Nothing) As PolicyTrackedResourceRecord

Parameters

trackedResourceId
ResourceIdentifier

The ID of the policy tracked resource.

policyDetails
PolicyDetails

The details of the policy that require the tracked resource.

createdBy
TrackedResourceModificationDetails

The details of the policy triggered deployment that created the tracked resource.

lastModifiedBy
TrackedResourceModificationDetails

The details of the policy triggered deployment that modified the tracked resource.

lastUpdateOn
Nullable<DateTimeOffset>

Timestamp of the last update to the tracked resource.

Returns

A new PolicyTrackedResourceRecord instance for mocking.

Applies to