
Google Cloud Set
CertifiedCreate or replace a Firestore document
Google Cloud Set
Create or replace a Firestore document
Writes a document in the target collection; generates an ID if childPath is not set. Accepts a map or JSON string payload.
type: io.kestra.plugin.gcp.firestore.SetExamples
Set a document from a map
id: gcp_firestore_set
namespace: company.team
tasks:
- id: set
type: io.kestra.plugin.gcp.firestore.Set
collection: "persons"
document:
firstname: "John"
lastname: "Doe"
Set a document from a JSON string
id: gcp_firestore_set
namespace: company.team
inputs:
- id: json_string
type: STRING
default: '{"firstname": "John", "lastname": "Doe"}'
tasks:
- id: set
type: io.kestra.plugin.gcp.firestore.Set
collection: "persons"
document: "{{ inputs.json_string }}"
Properties
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150childPath string
Document path
Optional child path; if absent, an ID is auto-generated
collection string
Collection path
Target collection name or path
databaseId string
(default)Database ID
Defaults to (default) if not provided
document stringobject
Document payload
Map or JSON string to write
impersonatedServiceAccount string
The GCP service account to impersonate
projectId string
The GCP project ID
scopes array
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used
serviceAccount string
The GCP service account
Outputs
updatedTime string
date-timeUpdated time