Condividi tramite


ComputeBatchModelFactory.BatchJobSchedule Method

Definition

Initializes a new instance of BatchJobSchedule.

public static Azure.Compute.Batch.BatchJobSchedule BatchJobSchedule (string id = default, string displayName = default, string url = default, string eTag = default, DateTimeOffset? lastModified = default, DateTimeOffset? creationTime = default, Azure.Compute.Batch.BatchJobScheduleState? state = default, DateTimeOffset? stateTransitionTime = default, Azure.Compute.Batch.BatchJobScheduleState? previousState = default, DateTimeOffset? previousStateTransitionTime = default, Azure.Compute.Batch.BatchJobScheduleConfiguration schedule = default, Azure.Compute.Batch.BatchJobSpecification jobSpecification = default, Azure.Compute.Batch.BatchJobScheduleExecutionInfo executionInfo = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.MetadataItem> metadata = default, Azure.Compute.Batch.BatchJobScheduleStatistics stats = default);
static member BatchJobSchedule : string * string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.Compute.Batch.BatchJobScheduleState> * Nullable<DateTimeOffset> * Nullable<Azure.Compute.Batch.BatchJobScheduleState> * Nullable<DateTimeOffset> * Azure.Compute.Batch.BatchJobScheduleConfiguration * Azure.Compute.Batch.BatchJobSpecification * Azure.Compute.Batch.BatchJobScheduleExecutionInfo * seq<Azure.Compute.Batch.MetadataItem> * Azure.Compute.Batch.BatchJobScheduleStatistics -> Azure.Compute.Batch.BatchJobSchedule
Public Shared Function BatchJobSchedule (Optional id As String = Nothing, Optional displayName As String = Nothing, Optional url As String = Nothing, Optional eTag As String = Nothing, Optional lastModified As Nullable(Of DateTimeOffset) = Nothing, Optional creationTime As Nullable(Of DateTimeOffset) = Nothing, Optional state As Nullable(Of BatchJobScheduleState) = Nothing, Optional stateTransitionTime As Nullable(Of DateTimeOffset) = Nothing, Optional previousState As Nullable(Of BatchJobScheduleState) = Nothing, Optional previousStateTransitionTime As Nullable(Of DateTimeOffset) = Nothing, Optional schedule As BatchJobScheduleConfiguration = Nothing, Optional jobSpecification As BatchJobSpecification = Nothing, Optional executionInfo As BatchJobScheduleExecutionInfo = Nothing, Optional metadata As IEnumerable(Of MetadataItem) = Nothing, Optional stats As BatchJobScheduleStatistics = Nothing) As BatchJobSchedule

Parameters

id
String

A string that uniquely identifies the schedule within the Account.

displayName
String

The display name for the schedule.

url
String

The URL of the Job Schedule.

eTag
String

The ETag of the Job Schedule. This is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.

lastModified
Nullable<DateTimeOffset>

The last modified time of the Job Schedule. This is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state.

creationTime
Nullable<DateTimeOffset>

The creation time of the Job Schedule.

state
Nullable<BatchJobScheduleState>

The current state of the Job Schedule.

stateTransitionTime
Nullable<DateTimeOffset>

The time at which the Job Schedule entered the current state.

previousState
Nullable<BatchJobScheduleState>

The previous state of the Job Schedule. This property is not present if the Job Schedule is in its initial active state.

previousStateTransitionTime
Nullable<DateTimeOffset>

The time at which the Job Schedule entered its previous state. This property is not present if the Job Schedule is in its initial active state.

schedule
BatchJobScheduleConfiguration

The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time.

jobSpecification
BatchJobSpecification

The details of the Jobs to be created on this schedule.

executionInfo
BatchJobScheduleExecutionInfo

Information about Jobs that have been and will be run under this schedule.

metadata
IEnumerable<MetadataItem>

A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.

stats
BatchJobScheduleStatistics

The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.

Returns

A new BatchJobSchedule instance for mocking.

Applies to