Share via


ArmCosmosDBModelFactory.DataTransferJobProperties Method

Definition

Initializes a new instance of DataTransferJobProperties.

public static Azure.ResourceManager.CosmosDB.Models.DataTransferJobProperties DataTransferJobProperties (string jobName = default, Azure.ResourceManager.CosmosDB.Models.DataTransferDataSourceSink source = default, Azure.ResourceManager.CosmosDB.Models.DataTransferDataSourceSink destination = default, string status = default, long? processedCount = default, long? totalCount = default, DateTimeOffset? lastUpdatedUtcOn = default, int? workerCount = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBErrorResult error = default, TimeSpan? duration = default, Azure.ResourceManager.CosmosDB.Models.DataTransferJobMode? mode = default);
static member DataTransferJobProperties : string * Azure.ResourceManager.CosmosDB.Models.DataTransferDataSourceSink * Azure.ResourceManager.CosmosDB.Models.DataTransferDataSourceSink * string * Nullable<int64> * Nullable<int64> * Nullable<DateTimeOffset> * Nullable<int> * Azure.ResourceManager.CosmosDB.Models.CosmosDBErrorResult * Nullable<TimeSpan> * Nullable<Azure.ResourceManager.CosmosDB.Models.DataTransferJobMode> -> Azure.ResourceManager.CosmosDB.Models.DataTransferJobProperties
Public Shared Function DataTransferJobProperties (Optional jobName As String = Nothing, Optional source As DataTransferDataSourceSink = Nothing, Optional destination As DataTransferDataSourceSink = Nothing, Optional status As String = Nothing, Optional processedCount As Nullable(Of Long) = Nothing, Optional totalCount As Nullable(Of Long) = Nothing, Optional lastUpdatedUtcOn As Nullable(Of DateTimeOffset) = Nothing, Optional workerCount As Nullable(Of Integer) = Nothing, Optional error As CosmosDBErrorResult = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional mode As Nullable(Of DataTransferJobMode) = Nothing) As DataTransferJobProperties

Parameters

jobName
String

Job Name.

source
DataTransferDataSourceSink

Source DataStore details Please note DataTransferDataSourceSink 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 AzureBlobDataTransferDataSourceSink, BaseCosmosDataTransferDataSourceSink, CosmosCassandraDataTransferDataSourceSink, CosmosMongoDataTransferDataSourceSink and CosmosSqlDataTransferDataSourceSink.

destination
DataTransferDataSourceSink

Destination DataStore details Please note DataTransferDataSourceSink 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 AzureBlobDataTransferDataSourceSink, BaseCosmosDataTransferDataSourceSink, CosmosCassandraDataTransferDataSourceSink, CosmosMongoDataTransferDataSourceSink and CosmosSqlDataTransferDataSourceSink.

status
String

Job Status.

processedCount
Nullable<Int64>

Processed Count.

totalCount
Nullable<Int64>

Total Count.

lastUpdatedUtcOn
Nullable<DateTimeOffset>

Last Updated Time (ISO-8601 format).

workerCount
Nullable<Int32>

Worker count.

error
CosmosDBErrorResult

Error response for Faulted job.

duration
Nullable<TimeSpan>

Total Duration of Job.

mode
Nullable<DataTransferJobMode>

Mode of job execution.

Returns

A new DataTransferJobProperties instance for mocking.

Applies to