Skip to content

Commit f99c96e

Browse files
committed
Moved properties to PostNonSatelliteGraphOptions and made PostSatelliteGraphOptions.ReplicationFactor read only.
1 parent e97169b commit f99c96e

File tree

3 files changed

+27
-28
lines changed

3 files changed

+27
-28
lines changed

arangodb-net-standard/GraphApi/Models/PostGraphOptions.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,5 @@ public abstract class PostGraphOptions
2727
/// The collection type cannot be modified later.
2828
/// </summary>
2929
public IEnumerable<string> Satellites { get; set; }
30-
31-
/// <summary>
32-
/// The number of shards that is used for every collection within this graph.
33-
/// Cannot be modified later.
34-
/// </summary>
35-
/// <remarks>
36-
/// (cluster only)
37-
/// </remarks>
38-
public int NumberOfShards { get; set; }
39-
40-
/// <summary>
41-
/// Write concern for new collections in the graph.
42-
/// It determines how many copies of each shard are
43-
/// required to be in sync on the different DB-Servers.
44-
/// If there are less then these many copies in the cluster
45-
/// a shard will refuse to write. Writes to shards with
46-
/// enough up-to-date copies will succeed at the same time however.
47-
/// The value of writeConcern can not be larger than
48-
/// <see cref="PostNonSatelliteGraphOptions.ReplicationFactor"/>.
49-
/// </summary>
50-
/// <remarks>
51-
/// (cluster only)
52-
/// </remarks>
53-
public int? WriteConcern { get; set; }
5430
}
5531
}

arangodb-net-standard/GraphApi/Models/PostNonSatelliteGraphOptions.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,29 @@ public class PostNonSatelliteGraphOptions : PostGraphOptions
1313
/// (cluster only)
1414
/// </remarks>
1515
public int ReplicationFactor { get; set; }
16+
17+
/// <summary>
18+
/// The number of shards that is used for every collection within this graph.
19+
/// Cannot be modified later.
20+
/// </summary>
21+
/// <remarks>
22+
/// (cluster only)
23+
/// </remarks>
24+
public int NumberOfShards { get; set; }
25+
26+
/// <summary>
27+
/// Write concern for new collections in the graph.
28+
/// It determines how many copies of each shard are
29+
/// required to be in sync on the different DB-Servers.
30+
/// If there are less then these many copies in the cluster
31+
/// a shard will refuse to write. Writes to shards with
32+
/// enough up-to-date copies will succeed at the same time however.
33+
/// The value of writeConcern can not be larger than
34+
/// <see cref="ReplicationFactor"/>.
35+
/// </summary>
36+
/// <remarks>
37+
/// (cluster only)
38+
/// </remarks>
39+
public int? WriteConcern { get; set; }
1640
}
1741
}

arangodb-net-standard/GraphApi/Models/PostSatelliteGraphOptions.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
public class PostSatelliteGraphOptions : PostGraphOptions
77
{
88
/// <summary>
9-
/// Set to "satellite" to create a SatelliteGraph,
10-
/// which will ignore numberOfShards, minReplicationFactor
11-
/// and writeConcern (Enterprise Edition only).
9+
/// Always set to "satellite" to create
10+
/// a SatelliteGraph (Enterprise Edition only).
1211
/// </summary>
13-
public string ReplicationFactor { get; set; }
12+
public string ReplicationFactor { get; } = "satellite";
1413
}
1514
}

0 commit comments

Comments
 (0)