ProjectsDatabasesCollectionGroupsFields
class ProjectsDatabasesCollectionGroupsFields extends Resource (View source)
The "fields" collection of methods.
Typical usage is:
$firestoreService = new Google\Service\Firestore(...);
$fields = $firestoreService->projects_databases_collectionGroups_fields;
Methods
Gets the metadata and configuration for a Field. (fields.get)
Lists the field configuration and metadata for this database. Currently,
FirestoreAdmin.ListFields only supports listing fields that have been
explicitly overridden. To issue this query, call FirestoreAdmin.ListFields
with the filter set to indexConfig.usesAncestorConfig:false
or
ttlConfig:*
. (fields.listProjectsDatabasesCollectionGroupsFields)
Updates a field configuration. Currently, field updates apply only to single
field index configuration. However, calls to FirestoreAdmin.UpdateField
should provide a field mask to avoid changing any configuration that the
caller isn't aware of. The field mask should be specified as: { paths: "index_config" }
. This call returns a google.longrunning.Operation which may
be used to track the status of the field update. The metadata for the
operation will be the type FieldOperationMetadata. To configure the default
field settings for the database, use the special Field
with resource name:
projects/{project_id}/databases/{database_id}/collectionGroups/__default__/f ields
. (fields.patch)
Details
GoogleFirestoreAdminV1Field
get(string $name, array $optParams = [])
Gets the metadata and configuration for a Field. (fields.get)
GoogleFirestoreAdminV1ListFieldsResponse
listProjectsDatabasesCollectionGroupsFields(string $parent, array $optParams = [])
Lists the field configuration and metadata for this database. Currently,
FirestoreAdmin.ListFields only supports listing fields that have been
explicitly overridden. To issue this query, call FirestoreAdmin.ListFields
with the filter set to indexConfig.usesAncestorConfig:false
or
ttlConfig:*
. (fields.listProjectsDatabasesCollectionGroupsFields)
GoogleLongrunningOperation
patch(string $name, GoogleFirestoreAdminV1Field $postBody, array $optParams = [])
Updates a field configuration. Currently, field updates apply only to single
field index configuration. However, calls to FirestoreAdmin.UpdateField
should provide a field mask to avoid changing any configuration that the
caller isn't aware of. The field mask should be specified as: { paths: "index_config" }
. This call returns a google.longrunning.Operation which may
be used to track the status of the field update. The metadata for the
operation will be the type FieldOperationMetadata. To configure the default
field settings for the database, use the special Field
with resource name:
projects/{project_id}/databases/{database_id}/collectionGroups/__default__/f ields
. (fields.patch)