-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MongoDBCollectionSettings.cs
36 lines (31 loc) · 1.74 KB
/
MongoDBCollectionSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.DataMigration.Models
{
/// <summary> Describes how an individual MongoDB collection should be migrated. </summary>
public partial class MongoDBCollectionSettings
{
/// <summary> Initializes a new instance of MongoDBCollectionSettings. </summary>
public MongoDBCollectionSettings()
{
}
/// <summary> Initializes a new instance of MongoDBCollectionSettings. </summary>
/// <param name="canDelete"> Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true. </param>
/// <param name="shardKey"> Describes a MongoDB shard key. </param>
/// <param name="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. </param>
internal MongoDBCollectionSettings(bool? canDelete, MongoDBShardKeySetting shardKey, int? targetRUs)
{
CanDelete = canDelete;
ShardKey = shardKey;
TargetRUs = targetRUs;
}
/// <summary> Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true. </summary>
public bool? CanDelete { get; set; }
/// <summary> Describes a MongoDB shard key. </summary>
public MongoDBShardKeySetting ShardKey { get; set; }
/// <summary> The RUs that should be configured on a CosmosDB target, or null to use the default. This has no effect on non-CosmosDB targets. </summary>
public int? TargetRUs { get; set; }
}
}