
Google Cloud Set
CertifiedCreate or replace a Firestore document
Google Cloud Set
Certified
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.
yaml
type: io.kestra.plugin.gcp.firestore.SetExamples
Set a document from a map
yaml
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
yaml
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
childPath 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
(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
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
projectId string
The GCP project ID
scopes array
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used
serviceAccount string
The GCP service account
Outputs
updatedTime string
Format
date-timeUpdated time