ArmDataMigrationModelFactory.ConnectToTargetSqlDBTaskProperties 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 ConnectToTargetSqlDBTaskProperties.
public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskProperties ConnectToTargetSqlDBTaskProperties(System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataMigration.Models.DataMigrationODataError> errors = default, Azure.ResourceManager.DataMigration.Models.DataMigrationTaskState? state = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataMigration.Models.DataMigrationCommandProperties> commands = default, System.Collections.Generic.IDictionary<string,string> clientData = default, Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskInput input = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskOutput> output = default, DateTimeOffset? createdOn = default);
static member ConnectToTargetSqlDBTaskProperties : seq<Azure.ResourceManager.DataMigration.Models.DataMigrationODataError> * Nullable<Azure.ResourceManager.DataMigration.Models.DataMigrationTaskState> * seq<Azure.ResourceManager.DataMigration.Models.DataMigrationCommandProperties> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskInput * seq<Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskOutput> * Nullable<DateTimeOffset> -> Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskProperties
Public Shared Function ConnectToTargetSqlDBTaskProperties (Optional errors As IEnumerable(Of DataMigrationODataError) = Nothing, Optional state As Nullable(Of DataMigrationTaskState) = Nothing, Optional commands As IEnumerable(Of DataMigrationCommandProperties) = Nothing, Optional clientData As IDictionary(Of String, String) = Nothing, Optional input As ConnectToTargetSqlDBTaskInput = Nothing, Optional output As IEnumerable(Of ConnectToTargetSqlDBTaskOutput) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing) As ConnectToTargetSqlDBTaskProperties
Parameters
- errors
- IEnumerable<DataMigrationODataError>
Array of errors. This is ignored if submitted.
- state
- Nullable<DataMigrationTaskState>
The state of the task. This is ignored if submitted.
- commands
- IEnumerable<DataMigrationCommandProperties>
Array of command properties. Please note DataMigrationCommandProperties 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 DataMigrationMongoDBCancelCommand, DataMigrationMongoDBFinishCommand, MigrateMISyncCompleteCommandProperties, MigrateSyncCompleteCommandProperties and DataMigrationMongoDBRestartCommand.
- clientData
- IDictionary<String,String>
Key value pairs of client data to attach meta data information to task.
Task input.
Task output. This is ignored if submitted.
- createdOn
- Nullable<DateTimeOffset>
DateTime in UTC when the task was created.
Returns
A new ConnectToTargetSqlDBTaskProperties instance for mocking.