Share via


ArmSecurityCenterModelFactory.SecurityTaskData Method

Definition

Initializes a new instance of SecurityTaskData.

public static Azure.ResourceManager.SecurityCenter.SecurityTaskData SecurityTaskData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string state = default, DateTimeOffset? createdOn = default, Azure.ResourceManager.SecurityCenter.Models.SecurityTaskProperties securityTaskParameters = default, DateTimeOffset? lastStateChangedOn = default, string subState = default);
static member SecurityTaskData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<DateTimeOffset> * Azure.ResourceManager.SecurityCenter.Models.SecurityTaskProperties * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.SecurityCenter.SecurityTaskData
Public Shared Function SecurityTaskData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional state As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional securityTaskParameters As SecurityTaskProperties = Nothing, Optional lastStateChangedOn As Nullable(Of DateTimeOffset) = Nothing, Optional subState As String = Nothing) As SecurityTaskData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

state
String

State of the task (Active, Resolved etc.).

createdOn
Nullable<DateTimeOffset>

The time this task was discovered in UTC.

securityTaskParameters
SecurityTaskProperties

Changing set of properties, depending on the task type that is derived from the name field.

lastStateChangedOn
Nullable<DateTimeOffset>

The time this task's details were last changed in UTC.

subState
String

Additional data on the state of the task.

Returns

A new SecurityTaskData instance for mocking.

Applies to