Skip to content

Commit f8de2f7

Browse files
authored
docs: URL-encode object name (#249)
* docs: URL-encode object name Per b/371471777 * docs: URL-encode object name Per b/371471777 * Update connector_storage.workflows.json
1 parent cc695f3 commit f8de2f7

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/connectors/connector_storage.workflows.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"bucket_name": "BUCKET_NAME"
1010
},
1111
{
12-
"object_name": "FILE_NAME.txt"
12+
"object_name": "${text.url_encode(\"FILE_NAME.txt\")}"
1313
}
1414
]
1515
}

src/connectors/connector_storage.workflows.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
- init:
2121
assign:
2222
- project_id: ${sys.get_env("GOOGLE_CLOUD_PROJECT_ID")}
23-
- bucket_name: "BUCKET_NAME" # replace BUCKET_NAME placeholder
24-
- object_name: "FILE_NAME.txt" # replace FILE_NAME placeholder
25-
# For connector calls, you should URL-encode object names to be path safe
26-
# For example: `name: ${text.url_encode(object_name)}`
23+
- bucket_name: "BUCKET_NAME" # replace BUCKET_NAME and FILE_NAME placeholders
24+
- object_name: ${text.url_encode("FILE_NAME.txt")} # URL-encode object names to be path safe
2725
- create_bucket:
2826
call: googleapis.storage.v1.buckets.insert
2927
args:

0 commit comments

Comments
 (0)