Share via


DataMigrationMongoDBCollectionSettings Class

Definition

Describes how an individual MongoDB collection should be migrated.

public class DataMigrationMongoDBCollectionSettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataMigration.Models.DataMigrationMongoDBCollectionSettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DataMigration.Models.DataMigrationMongoDBCollectionSettings>
type DataMigrationMongoDBCollectionSettings = class
    interface IJsonModel<DataMigrationMongoDBCollectionSettings>
    interface IPersistableModel<DataMigrationMongoDBCollectionSettings>
Public Class DataMigrationMongoDBCollectionSettings
Implements IJsonModel(Of DataMigrationMongoDBCollectionSettings), IPersistableModel(Of DataMigrationMongoDBCollectionSettings)
Inheritance
DataMigrationMongoDBCollectionSettings
Implements

Constructors

DataMigrationMongoDBCollectionSettings()

Initializes a new instance of DataMigrationMongoDBCollectionSettings.

Properties

CanDelete

Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true.

ShardKey

Describes a MongoDB shard key.

TargetRUs

The RUs that should be configured on a CosmosDB target, or null to use the default. This has no effect on non-CosmosDB targets.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DataMigrationMongoDBCollectionSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DataMigrationMongoDBCollectionSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataMigrationMongoDBCollectionSettings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataMigrationMongoDBCollectionSettings>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DataMigrationMongoDBCollectionSettings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to