ArmSecurityCenterModelFactory.SecurityTaskData 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 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
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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.