Interface IWithPartitionKey
- Namespace
- Microsoft.Azure.Management.CosmosDB.Fluent.GremlinGraph.Update
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The stage of a Gremlin Graph update allowing to set partition key.
public interface IWithPartitionKey
Methods
WithPartitionKey(ContainerPartitionKey)
Specifies the container partition key.
IUpdate WithPartitionKey(ContainerPartitionKey containerPartitionKey)
Parameters
containerPartitionKey
ContainerPartitionKeyThe whole object of the container partition key.
Returns
- IUpdate
The next stage of the update.
WithPartitionKey(IList<string>, PartitionKind, int?)
Specifies the container partition key.
IUpdate WithPartitionKey(IList<string> paths, PartitionKind kind, int? version)
Parameters
paths
IList<string>List of paths using which data within the container can be partitioned.
kind
PartitionKindIndicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.
version
int?Indicates the version of the partition key definition.
Returns
- IUpdate
The next stage of the update.
WithoutPartitionKey()
Removes the container partition key.
IUpdate WithoutPartitionKey()
Returns
- IUpdate
The next stage of the update.