Class ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource
The "fields" collection of methods.
Inherited Members
Namespace: Google.Apis.Firestore.v1beta2
Assembly: Google.Apis.Firestore.v1beta2.dll
Syntax
public class ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource
Constructors
FieldsResource(IClientService)
Constructs a new resource.
Declaration
public FieldsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(string)
Gets the metadata and configuration for a Field.
Declaration
public virtual ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | A name of the form
|
Returns
Type | Description |
---|---|
ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource.GetRequest |
List(string)
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
.
Declaration
public virtual ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | A parent name of the form
|
Returns
Type | Description |
---|---|
ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource.ListRequest |
Patch(GoogleFirestoreAdminV1beta2Field, string)
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__/fields/*
.
Declaration
public virtual ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource.PatchRequest Patch(GoogleFirestoreAdminV1beta2Field body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleFirestoreAdminV1beta2Field | body | The body of the request. |
string | name | A field name of the form
|
Returns
Type | Description |
---|---|
ProjectsResource.DatabasesResource.CollectionGroupsResource.FieldsResource.PatchRequest |