DiscoveryModelFactory.DiscoveryTask 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.
Task resource.
public static Azure.AI.Discovery.DiscoveryTask DiscoveryTask(string name = default, string title = default, Azure.AI.Discovery.TaskPriority? priority = default, string description = default, System.Collections.Generic.IEnumerable<string> validationRequirements = default, string parentId = default, System.Collections.Generic.IEnumerable<string> dependsOn = default, System.Collections.Generic.IEnumerable<string> relatedTo = default, Azure.AI.Discovery.TaskAssignee assignedTo = default, System.Collections.Generic.IEnumerable<Azure.AI.Discovery.TaskComment> comments = default, Azure.AI.Discovery.TaskStatus? status = default, DateTimeOffset? createdAt = default, string createdBy = default, Azure.AI.Discovery.DiscoveryActorType? createdByType = default, DateTimeOffset? lastModifiedAt = default, string lastModifiedBy = default, Azure.AI.Discovery.DiscoveryActorType? lastModifiedByType = default, System.Collections.Generic.IEnumerable<Azure.AI.Discovery.ExecutionHistoryEntry> executionHistory = default, string investigationId = default, Azure.AI.Discovery.TaskResult taskResult = default, System.Collections.Generic.IEnumerable<Azure.Core.ResourceIdentifier> storageAssetIds = default);
static member DiscoveryTask : string * string * Nullable<Azure.AI.Discovery.TaskPriority> * string * seq<string> * string * seq<string> * seq<string> * Azure.AI.Discovery.TaskAssignee * seq<Azure.AI.Discovery.TaskComment> * Nullable<Azure.AI.Discovery.TaskStatus> * Nullable<DateTimeOffset> * string * Nullable<Azure.AI.Discovery.DiscoveryActorType> * Nullable<DateTimeOffset> * string * Nullable<Azure.AI.Discovery.DiscoveryActorType> * seq<Azure.AI.Discovery.ExecutionHistoryEntry> * string * Azure.AI.Discovery.TaskResult * seq<Azure.Core.ResourceIdentifier> -> Azure.AI.Discovery.DiscoveryTask
Public Shared Function DiscoveryTask (Optional name As String = Nothing, Optional title As String = Nothing, Optional priority As Nullable(Of TaskPriority) = Nothing, Optional description As String = Nothing, Optional validationRequirements As IEnumerable(Of String) = Nothing, Optional parentId As String = Nothing, Optional dependsOn As IEnumerable(Of String) = Nothing, Optional relatedTo As IEnumerable(Of String) = Nothing, Optional assignedTo As TaskAssignee = Nothing, Optional comments As IEnumerable(Of TaskComment) = Nothing, Optional status As Nullable(Of TaskStatus) = Nothing, Optional createdAt As Nullable(Of DateTimeOffset) = Nothing, Optional createdBy As String = Nothing, Optional createdByType As Nullable(Of DiscoveryActorType) = Nothing, Optional lastModifiedAt As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedBy As String = Nothing, Optional lastModifiedByType As Nullable(Of DiscoveryActorType) = Nothing, Optional executionHistory As IEnumerable(Of ExecutionHistoryEntry) = Nothing, Optional investigationId As String = Nothing, Optional taskResult As TaskResult = Nothing, Optional storageAssetIds As IEnumerable(Of ResourceIdentifier) = Nothing) As DiscoveryTask
Parameters
- name
- String
The unique identifier of the task.
- title
- String
The title of the task.
- priority
- Nullable<TaskPriority>
The priority of the task.
- description
- String
The description of the task.
- validationRequirements
- IEnumerable<String>
Array of validation requirements for the task.
- parentId
- String
ID of the parent task if this is a subtask.
- dependsOn
- IEnumerable<String>
IDs of tasks that must complete before this task can be executed.
- relatedTo
- IEnumerable<String>
IDs of tasks that are related to this task.
- assignedTo
- TaskAssignee
Application or user assigned to this task.
- comments
- IEnumerable<TaskComment>
Comments or notes about the task.
- status
- Nullable<TaskStatus>
The current status of the task.
- createdAt
- Nullable<DateTimeOffset>
The timestamp when the resource was created.
- createdBy
- String
The ID of the user who created this resource.
- createdByType
- Nullable<DiscoveryActorType>
Type of entity that created the resource (User, Application, System, or custom type).
- lastModifiedAt
- Nullable<DateTimeOffset>
The timestamp when the resource was last updated.
- lastModifiedBy
- String
The ID of the user who updated this resource.
- lastModifiedByType
- Nullable<DiscoveryActorType>
The type of user who updated this resource.
- executionHistory
- IEnumerable<ExecutionHistoryEntry>
History of execution events for this task.
- investigationId
- String
The investigation identifier associated with the task.
- taskResult
- TaskResult
Task execution result with text and storage assets.
- storageAssetIds
- IEnumerable<ResourceIdentifier>
List of storage assets related to the task.
Returns
A new DiscoveryTask instance for mocking.