Google Cloud Set

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.Set

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

Document path

Optional child path; if absent, an ID is auto-generated

Collection path

Target collection name or path

Default(default)

Database ID

Defaults to (default) if not provided

Document payload

Map or JSON string to write

The GCP service account to impersonate

Reference (ref) of the pluginDefaults to apply to this task.

The GCP project ID

SubTypestring
Default["https://www.googleapis.com/auth/cloud-platform"]

The GCP scopes to be used

The GCP service account

Formatdate-time

Updated time