Share via


MongoDBCollectionSettings Class

Definition

Describes how an individual MongoDB collection should be migrated.

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

Constructors

MongoDBCollectionSettings()

Initializes a new instance of MongoDBCollectionSettings.

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<MongoDBCollectionSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBCollectionSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBCollectionSettings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBCollectionSettings>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBCollectionSettings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to