# GCP Cloud Storage

Sends message parts as objects to a Google Cloud Storage bucket. Each object is uploaded with the path specified with the `path` field.

## Configuration

| Name             | Type       | Optional | Secret | Description                                                                                                                                                        |
| ---------------- | ---------- | -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| credentials_json | string     | no       | no     | JSON credentials for authenticating with GCP.                                                                                                                      |
| bucket           | string     | no       | no     | The name of the bucket to upload objects to.                                                                                                                       |
| path             | expression | yes      | no     | The path of the object to upload to. This field supports interpolation functions. The value defaults to `${!counter()}-${!timestamp_unix_nano()}.txt`.             |
| content_type     | string     | yes      | no     | The content type of the object being uploaded. The value defaults to `application/octet-stream`.                                                                   |
| content_encoding | string     | yes      | no     | The content encoding of the object being uploaded.                                                                                                                 |
| collision_mode   | string     | yes      | no     | The behaviour to take when a collision occurs. The value should be one of `append`, `error-if-exists`, `ignore` or `overwrite`. The value defaults to `overwrite`. |
| chunk_size       | int        | yes      | no     | The size in bytes of each chunk to upload the object in. The value defaults to `16777216`.                                                                         |
| timeout          | string     | yes      | no     | The maximum period to wait on an upload before abandoning it and reattempting. The value defaults to `5s`.                                                         |
| max_in_flight    | int        | yes      | no     | The maximum number of messages to have in flight at any given time. The value defaults to `64`.                                                                    |
