REST Resource: projects.indexes

Resource: Index

A minimal index definition. Next tag: 8

JSON representation
{
  "projectId": string,
  "databaseId": string,
  "indexId": string,
  "kind": string,
  "ancestor": enum(AncestorMode),
  "properties": [
    {
      object(IndexedProperty)
    }
  ],
  "state": enum(State)
}
Fields
projectId

string

Project ID. Output only.

databaseId

string

Database ID. Not currently supported. Output only.

indexId

string

The resource ID of the index. Output only.

kind

string

The entity kind to which this index applies. Required.

ancestor

enum(AncestorMode)

The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. Required.

properties[]

object(IndexedProperty)

An ordered sequence of property names and their index attributes. Required.

state

enum(State)

The state of the index. Output only.

AncestorMode

For an ordered index, specifies whether each of the entity's ancestors will be included.

Enums
ANCESTOR_MODE_UNSPECIFIED The ancestor mode is unspecified.
NONE Do not include the entity's ancestors in the index.
ALL_ANCESTORS Include all the entity's ancestors in the index.

IndexedProperty

Next tag: 3

JSON representation
{
  "name": string,
  "direction": enum(Direction)
}
Fields
name

string

The property name to index. Required.

direction

enum(Direction)

The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. Required.

Direction

The direction determines how a property is indexed.

Enums
DIRECTION_UNSPECIFIED The direction is unspecified.
ASCENDING The property's values are indexed so as to support sequencing in ascending order and also query by <, >, <=, >=, and =.
DESCENDING The property's values are indexed so as to support sequencing in descending order and also query by <, >, <=, >=, and =.

State

The possible set of states of an index.

Enums
STATE_UNSPECIFIED The state is unspecified.
CREATING The index is being created, and cannot be used by queries. There is an active long-running operation for the index. The index is updated when writing an entity. Some index data may exist.
READY The index is ready to be used. The index is updated when writing an entity. The index is fully populated from all stored entities it applies to.
DELETING The index is being deleted, and cannot be used by queries. There is an active long-running operation for the index. The index is not updated when writing an entity. Some index data may exist.
ERROR The index was being created or deleted, but something went wrong. The index cannot by used by queries. There is no active long-running operation for the index, and the most recently finished long-running operation failed. The index is not updated when writing an entity. Some index data may exist.

Methods

get

Gets an index.

list

Lists the indexes that match the specified filters.
¿Te ha resultado útil esta página? Enviar comentarios:

Enviar comentarios sobre...