Interface IWithSpatialIndexes<ParentT>
- Namespace
- Microsoft.Azure.Management.CosmosDB.Fluent.IndexingPolicy.Update
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The stage of the indexing policy update allowing to set spatial indexes.
public interface IWithSpatialIndexes<ParentT>
Type Parameters
ParentT
The stage of the parent update to return to after attaching this update.
Methods
WithSpatialIndex(SpatialSpec)
Specifies a spatial index.
IWithAttach<ParentT> WithSpatialIndex(SpatialSpec spatialSpec)
Parameters
spatialSpec
SpatialSpecOne of the spatial spec.
Returns
- IWithAttach<ParentT>
The next stage of the update.
WithSpatialIndex(string, params SpatialType[])
Specifies a spatial index.
IWithAttach<ParentT> WithSpatialIndex(string path, params SpatialType[] types)
Parameters
path
stringThe path of the spatial index.
types
SpatialType[]The types of the spatial index.
Returns
- IWithAttach<ParentT>
The next stage of the update.
WithSpatialIndexesAppend(IList<SpatialSpec>)
Appends spatial indexes.
IWithAttach<ParentT> WithSpatialIndexesAppend(IList<SpatialSpec> spatialSpecs)
Parameters
spatialSpecs
IList<SpatialSpec>The list of the spatial spec.
Returns
- IWithAttach<ParentT>
The next stage of the update.
WithSpatialIndexesReplace(IList<SpatialSpec>)
Replaces the spatial indexes.
IWithAttach<ParentT> WithSpatialIndexesReplace(IList<SpatialSpec> spatialSpecs)
Parameters
spatialSpecs
IList<SpatialSpec>The list of the spatial spec.
Returns
- IWithAttach<ParentT>
The next stage of the update.
WithoutSpatialIndex(string)
Removes a spatial index.
IWithAttach<ParentT> WithoutSpatialIndex(string path)
Parameters
path
stringThe path of the spatial spec.
Returns
- IWithAttach<ParentT>
The next stage of the update.
WithoutSpatialIndexes()
Removes all spatial indexes.
IWithAttach<ParentT> WithoutSpatialIndexes()
Returns
- IWithAttach<ParentT>
The next stage of the update.