Condividi tramite


ArmWorkloadOrchestrationModelFactory.EdgeJobProperties Method

Definition

Initializes a new instance of EdgeJobProperties.

public static Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobProperties EdgeJobProperties(Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobType jobType = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobStatus status = default, Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobContent jobParameter = default, string correlationId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobStep> steps = default, string triggeredBy = default, Azure.ResourceManager.WorkloadOrchestration.Models.WorkloadOrchestrationProvisioningState? provisioningState = default, Azure.ResponseError errorDetails = default);
static member EdgeJobProperties : Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobType * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobStatus * Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobContent * string * seq<Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobStep> * string * Nullable<Azure.ResourceManager.WorkloadOrchestration.Models.WorkloadOrchestrationProvisioningState> * Azure.ResponseError -> Azure.ResourceManager.WorkloadOrchestration.Models.EdgeJobProperties
Public Shared Function EdgeJobProperties (Optional jobType As EdgeJobType = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional status As EdgeJobStatus = Nothing, Optional jobParameter As EdgeJobContent = Nothing, Optional correlationId As String = Nothing, Optional steps As IEnumerable(Of EdgeJobStep) = Nothing, Optional triggeredBy As String = Nothing, Optional provisioningState As Nullable(Of WorkloadOrchestrationProvisioningState) = Nothing, Optional errorDetails As ResponseError = Nothing) As EdgeJobProperties

Parameters

jobType
EdgeJobType

The type of job.

startOn
Nullable<DateTimeOffset>

Start time of the job (ISO8601).

endOn
Nullable<DateTimeOffset>

End time of the job (ISO8601).

status
EdgeJobStatus

Status of the job.

jobParameter
EdgeJobContent

Parameters for the job. Please note EdgeJobContent is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DeployJobContent.

correlationId
String

Correlation ID for tracking.

steps
IEnumerable<EdgeJobStep>

Steps and substatuses for the job.

triggeredBy
String

The OID or identity that triggered the job.

provisioningState
Nullable<WorkloadOrchestrationProvisioningState>

Provisioning state of the resource.

errorDetails
ResponseError

Error Details if any failure is there.

Returns

A new EdgeJobProperties instance for mocking.

Applies to