-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCollectionProperties.cs
31 lines (27 loc) · 1.05 KB
/
CollectionProperties.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
using System.Collections.Generic;
namespace CosmoDBCollectionPropertyUpdater
{
public class CollectionProperties
{
public string DatabaseName { get; set; }
public string CollectionName { get; set; }
public List<string> PartitionKeys { get; set; }
public string ExcludedPaths { get; set; }
public List<string> UniqueKeys { get; set; }
public int OfferThroughput { get; set; }
public CollectionProperties()
{
PartitionKeys = new List<string>();
UniqueKeys = new List<string>();
}
public CollectionProperties(CollectionProperties copyCollection)
{
DatabaseName = copyCollection.DatabaseName;
CollectionName = copyCollection.CollectionName;
PartitionKeys = new List<string>(copyCollection.PartitionKeys);
ExcludedPaths = copyCollection.ExcludedPaths;
UniqueKeys = new List<string>(copyCollection.UniqueKeys);
OfferThroughput = copyCollection.OfferThroughput;
}
}
}