ArmCosmosDBModelFactory.DataTransferJobProperties 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.
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, CosmosMongoVCoreDataTransferDataSourceSink 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, CosmosMongoVCoreDataTransferDataSourceSink and CosmosSqlDataTransferDataSourceSink.
- status
- String
Job Status.
- lastUpdatedUtcOn
- Nullable<DateTimeOffset>
Last Updated Time (ISO-8601 format).
- error
- CosmosDBErrorResult
Error response for Faulted job.
- mode
- Nullable<DataTransferJobMode>
Mode of job execution.
Returns
A new DataTransferJobProperties instance for mocking.