2021-11-17 17:59:00 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
2021-11-17 17:59:00 +00:00
|
|
|
"title": "GCS datasource",
|
|
|
|
|
"description": "A schema defining GCS datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "cloud-storage",
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {},
|
2021-11-17 17:59:00 +00:00
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Operation",
|
|
|
|
|
"key": "operation",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
2022-01-17 07:08:17 +00:00
|
|
|
"list": [
|
2022-01-27 05:25:16 +00:00
|
|
|
{
|
|
|
|
|
"value": "get_file",
|
|
|
|
|
"name": "Read file"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "upload_file",
|
|
|
|
|
"name": "Upload file"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "list_buckets",
|
|
|
|
|
"name": "List buckets"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "list_files",
|
|
|
|
|
"name": "List files in a bucket"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "signed_url_for_get",
|
|
|
|
|
"name": "Signed url for download"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "signed_url_for_put",
|
|
|
|
|
"name": "Signed url for upload"
|
|
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"get_file": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"file": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "File name",
|
|
|
|
|
"key": "file",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter file",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter file"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"upload_file": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"file": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "File name",
|
|
|
|
|
"key": "file",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter file",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter file"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"contentType": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Content Type",
|
|
|
|
|
"key": "contentType",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter content type",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter content type"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"data": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Upload data",
|
|
|
|
|
"key": "data",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter upload data",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter upload data"
|
2022-03-23 02:21:23 +00:00
|
|
|
},
|
|
|
|
|
"encoding": {
|
|
|
|
|
"label": "Encoding",
|
|
|
|
|
"key": "encoding",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter upload data",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "utf8"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"list_files": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"prefix": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Prefix (optional)",
|
|
|
|
|
"key": "prefix",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter prefix",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter prefix"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"signed_url_for_get": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"file": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "File name",
|
|
|
|
|
"key": "file",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter file",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter file"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"expiresIn": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Expires in",
|
|
|
|
|
"key": "expiresIn",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"initialValue": "3600",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter expires in",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"signed_url_for_put": {
|
|
|
|
|
"bucket": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"file": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "File name",
|
|
|
|
|
"key": "file",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter file",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter file"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"expiresIn": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Expires in",
|
|
|
|
|
"key": "expiresIn",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"initialValue": "3600",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter expires in",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"contentType": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Content Type",
|
|
|
|
|
"key": "contentType",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter content type",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-03-23 02:21:23 +00:00
|
|
|
}
|