class ProjectsDatabasesCollectionGroupsIndexes extends Resource (View source)

The "indexes" collection of methods.

Typical usage is:

 $firestoreService = new Google\Service\Firestore(...);
 $indexes = $firestoreService->projects_databases_collectionGroups_indexes;

Methods

create(string $parent, GoogleFirestoreAdminV1Index $postBody, array $optParams = [])

Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata. (indexes.create)

delete(string $name, array $optParams = [])

Deletes a composite index. (indexes.delete)

get(string $name, array $optParams = [])

Gets a composite index. (indexes.get)

listProjectsDatabasesCollectionGroupsIndexes(string $parent, array $optParams = [])

Lists composite indexes.

Details

GoogleLongrunningOperation create(string $parent, GoogleFirestoreAdminV1Index $postBody, array $optParams = [])

Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata. (indexes.create)

Parameters

string $parent

Required. A parent name of the form projects/{project_ id}/databases/{database_id}/collectionGroups/{collection_id}

GoogleFirestoreAdminV1Index $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

FirestoreEmpty delete(string $name, array $optParams = [])

Deletes a composite index. (indexes.delete)

Parameters

string $name

Required. A name of the form projects/{project_id}/datab ases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}

array $optParams

Optional parameters.

Return Value

FirestoreEmpty

Exceptions

Exception

GoogleFirestoreAdminV1Index get(string $name, array $optParams = [])

Gets a composite index. (indexes.get)

Parameters

string $name

Required. A name of the form projects/{project_id}/datab ases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}

array $optParams

Optional parameters.

Return Value

GoogleFirestoreAdminV1Index

Exceptions

Exception

GoogleFirestoreAdminV1ListIndexesResponse listProjectsDatabasesCollectionGroupsIndexes(string $parent, array $optParams = [])

Lists composite indexes.

(indexes.listProjectsDatabasesCollectionGroupsIndexes)

Parameters

string $parent

Required. A parent name of the form projects/{project_ id}/databases/{database_id}/collectionGroups/{collection_id}

array $optParams

Optional parameters.

Return Value

GoogleFirestoreAdminV1ListIndexesResponse

Exceptions

Exception