Share via


CosmosDBIndexingPolicy Class

Definition

Cosmos DB indexing policy.

public class CosmosDBIndexingPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.CosmosDBIndexingPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.CosmosDBIndexingPolicy>
type CosmosDBIndexingPolicy = class
    interface IJsonModel<CosmosDBIndexingPolicy>
    interface IPersistableModel<CosmosDBIndexingPolicy>
Public Class CosmosDBIndexingPolicy
Implements IJsonModel(Of CosmosDBIndexingPolicy), IPersistableModel(Of CosmosDBIndexingPolicy)
Inheritance
CosmosDBIndexingPolicy
Implements

Constructors

CosmosDBIndexingPolicy()

Initializes a new instance of CosmosDBIndexingPolicy.

Properties

CompositeIndexes

List of composite path list.

ExcludedPaths

List of paths to exclude from indexing.

IncludedPaths

List of paths to include in the indexing.

IndexingMode

Indicates the indexing mode.

IsAutomatic

Indicates if the indexing policy is automatic.

SpatialIndexes

List of spatial specifics.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CosmosDBIndexingPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CosmosDBIndexingPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CosmosDBIndexingPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CosmosDBIndexingPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CosmosDBIndexingPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to