ArmDataMigrationModelFactory.MongoDBDatabaseInfo 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 MongoDBDatabaseInfo.
public static Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseInfo MongoDBDatabaseInfo (long averageDocumentSize = 0, long dataSize = 0, long documentCount = 0, string name = default, string qualifiedName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataMigration.Models.MongoDBCollectionInfo> collections = default, bool supportsSharding = false);
static member MongoDBDatabaseInfo : int64 * int64 * int64 * string * string * seq<Azure.ResourceManager.DataMigration.Models.MongoDBCollectionInfo> * bool -> Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseInfo
Public Shared Function MongoDBDatabaseInfo (Optional averageDocumentSize As Long = 0, Optional dataSize As Long = 0, Optional documentCount As Long = 0, Optional name As String = Nothing, Optional qualifiedName As String = Nothing, Optional collections As IEnumerable(Of MongoDBCollectionInfo) = Nothing, Optional supportsSharding As Boolean = false) As MongoDBDatabaseInfo
Parameters
- averageDocumentSize
- Int64
The average document size, or -1 if the average size is unknown.
- dataSize
- Int64
The estimated total data size, in bytes, or -1 if the size is unknown.
- documentCount
- Int64
The estimated total number of documents, or -1 if the document count is unknown.
- name
- String
The unqualified name of the database or collection.
- qualifiedName
- String
The qualified name of the database or collection. For a collection, this is the database-qualified name.
- collections
- IEnumerable<MongoDBCollectionInfo>
A list of supported collections in a MongoDB database.
- supportsSharding
- Boolean
Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary.
Returns
A new MongoDBDatabaseInfo instance for mocking.
Exceptions
name
or qualifiedName
is null.