Partilhar via


AnalyticsDefenderEasmModelFactory.AssetSecurityPolicy Method

Definition

Initializes a new instance of AssetSecurityPolicy.

public static Azure.Analytics.Defender.Easm.AssetSecurityPolicy AssetSecurityPolicy (string policyName = default, bool? isAffected = default, string description = default, DateTimeOffset? firstSeen = default, DateTimeOffset? lastSeen = default, long? count = default, bool? recent = default, System.Collections.Generic.IEnumerable<Azure.Analytics.Defender.Easm.SourceDetails> sources = default);
static member AssetSecurityPolicy : string * Nullable<bool> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int64> * Nullable<bool> * seq<Azure.Analytics.Defender.Easm.SourceDetails> -> Azure.Analytics.Defender.Easm.AssetSecurityPolicy
Public Shared Function AssetSecurityPolicy (Optional policyName As String = Nothing, Optional isAffected As Nullable(Of Boolean) = Nothing, Optional description As String = Nothing, Optional firstSeen As Nullable(Of DateTimeOffset) = Nothing, Optional lastSeen As Nullable(Of DateTimeOffset) = Nothing, Optional count As Nullable(Of Long) = Nothing, Optional recent As Nullable(Of Boolean) = Nothing, Optional sources As IEnumerable(Of SourceDetails) = Nothing) As AssetSecurityPolicy

Parameters

policyName
String
isAffected
Nullable<Boolean>
description
String
count
Nullable<Int64>
recent
Nullable<Boolean>

Returns

A new AssetSecurityPolicy instance for mocking.

Applies to