AzureAIProjectsModelFactory.ProjectsRoutine 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.
A routine definition returned by the service.
public static Azure.AI.Projects.ProjectsRoutine ProjectsRoutine(string name = default, string description = default, bool enabled = false, System.Collections.Generic.IDictionary<string,Azure.AI.Projects.RoutineTrigger> triggers = default, Azure.AI.Projects.RoutineAction action = default, DateTimeOffset? createdAt = default, DateTimeOffset? updatedAt = default);
static member ProjectsRoutine : string * string * bool * System.Collections.Generic.IDictionary<string, Azure.AI.Projects.RoutineTrigger> * Azure.AI.Projects.RoutineAction * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.AI.Projects.ProjectsRoutine
Public Shared Function ProjectsRoutine (Optional name As String = Nothing, Optional description As String = Nothing, Optional enabled As Boolean = false, Optional triggers As IDictionary(Of String, RoutineTrigger) = Nothing, Optional action As RoutineAction = Nothing, Optional createdAt As Nullable(Of DateTimeOffset) = Nothing, Optional updatedAt As Nullable(Of DateTimeOffset) = Nothing) As ProjectsRoutine
Parameters
- name
- String
The routine name.
- description
- String
A human-readable description of the routine.
- enabled
- Boolean
Whether the routine is enabled.
- triggers
- IDictionary<String,RoutineTrigger>
The triggers configured for the routine.
- action
- RoutineAction
The action executed when the routine fires.
- createdAt
- Nullable<DateTimeOffset>
The time when the routine was created.
- updatedAt
- Nullable<DateTimeOffset>
The time when the routine was last updated.
Returns
A new ProjectsRoutine instance for mocking.