Share via


MongoDBDatabaseInfo Class

Definition

Describes a database within a MongoDB data source.

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

Properties

AverageDocumentSize

The average document size, or -1 if the average size is unknown.

(Inherited from MongoDBObjectInfo)
Collections

A list of supported collections in a MongoDB database.

DataSize

The estimated total data size, in bytes, or -1 if the size is unknown.

(Inherited from MongoDBObjectInfo)
DocumentCount

The estimated total number of documents, or -1 if the document count is unknown.

(Inherited from MongoDBObjectInfo)
Name

The unqualified name of the database or collection.

(Inherited from MongoDBObjectInfo)
QualifiedName

The qualified name of the database or collection. For a collection, this is the database-qualified name.

(Inherited from MongoDBObjectInfo)
SupportsSharding

Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBDatabaseInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBDatabaseInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<MongoDBObjectInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from MongoDBObjectInfo)
IJsonModel<MongoDBObjectInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MongoDBObjectInfo)
IPersistableModel<MongoDBDatabaseInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBDatabaseInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBDatabaseInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<MongoDBObjectInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MongoDBObjectInfo)
IPersistableModel<MongoDBObjectInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from MongoDBObjectInfo)
IPersistableModel<MongoDBObjectInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MongoDBObjectInfo)

Applies to