Table of Contents

Interface IWithPartitionKey<ParentT>

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.GremlinGraph.Definition
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The stage of a Gremlin Graph definition allowing to set partition key.

public interface IWithPartitionKey<ParentT>

Type Parameters

ParentT

The stage of the parent definition to return to after attaching this definition.

Methods

WithPartitionKey(ContainerPartitionKey)

Specifies the container partition key.

IWithAttach<ParentT> WithPartitionKey(ContainerPartitionKey containerPartitionKey)

Parameters

containerPartitionKey ContainerPartitionKey

The whole object of the container partition key.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithPartitionKey(IList<string>, PartitionKind, int?)

Specifies the container partition key.

IWithAttach<ParentT> 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 PartitionKind

Indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.

version int?

Indicates the version of the partition key definition.

Returns

IWithAttach<ParentT>

The next stage of the definition.