Skip to content

Commit 48175a6

Browse files
authored
docs: Change object_name to encoded_object_name (#250)
* docs: Change object_name to encoded_object_name Per comment #23 in b/371471777 * docs: Change object_name to encoded_object_name
1 parent f8de2f7 commit 48175a6

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/connectors/connector_storage.workflows.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"bucket_name": "BUCKET_NAME"
1010
},
1111
{
12-
"object_name": "${text.url_encode(\"FILE_NAME.txt\")}"
12+
"encoded_object_name": "${text.url_encode(\"FILE_NAME.txt\")}"
1313
}
1414
]
1515
}
@@ -31,7 +31,7 @@
3131
"args": {
3232
"bucket": "${bucket_name}",
3333
"uploadType": "media",
34-
"name": "${object_name}",
34+
"name": "${encoded_object_name}",
3535
"body": "hello world"
3636
}
3737
}
@@ -41,7 +41,7 @@
4141
"call": "googleapis.storage.v1.objects.get",
4242
"args": {
4343
"bucket": "${bucket_name}",
44-
"object": "${object_name}",
44+
"object": "${encoded_object_name}",
4545
"alt": "media"
4646
},
4747
"result": "object_data"
@@ -52,7 +52,7 @@
5252
"call": "googleapis.storage.v1.objects.get",
5353
"args": {
5454
"bucket": "${bucket_name}",
55-
"object": "${object_name}"
55+
"object": "${encoded_object_name}"
5656
},
5757
"result": "object_metadata"
5858
}
@@ -70,7 +70,7 @@
7070
"call": "googleapis.storage.v1.objects.delete",
7171
"args": {
7272
"bucket": "${bucket_name}",
73-
"object": "${object_name}"
73+
"object": "${encoded_object_name}"
7474
}
7575
}
7676
},

src/connectors/connector_storage.workflows.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
assign:
2222
- project_id: ${sys.get_env("GOOGLE_CLOUD_PROJECT_ID")}
2323
- 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
24+
- encoded_object_name: ${text.url_encode("FILE_NAME.txt")} # URL-encode object names to be path safe
2525
- create_bucket:
2626
call: googleapis.storage.v1.buckets.insert
2727
args:
@@ -33,21 +33,21 @@
3333
args:
3434
bucket: ${bucket_name}
3535
uploadType: "media" # uploads object data
36-
name: ${object_name}
36+
name: ${encoded_object_name}
3737
body: "hello world"
3838
- download_object_media:
3939
call: googleapis.storage.v1.objects.get
4040
args:
4141
bucket: ${bucket_name}
42-
object: ${object_name}
42+
object: ${encoded_object_name}
4343
alt: "media" # gets object data
4444
result: object_data
4545
# If `alt` is not set, get metadata
4646
- get_object_metadata:
4747
call: googleapis.storage.v1.objects.get
4848
args:
4949
bucket: ${bucket_name}
50-
object: ${object_name}
50+
object: ${encoded_object_name}
5151
result: object_metadata
5252
- get_bucket:
5353
call: googleapis.storage.v1.buckets.get
@@ -57,7 +57,7 @@
5757
call: googleapis.storage.v1.objects.delete
5858
args:
5959
bucket: ${bucket_name}
60-
object: ${object_name}
60+
object: ${encoded_object_name}
6161
- delete_bucket:
6262
call: googleapis.storage.v1.buckets.delete
6363
args:

0 commit comments

Comments
 (0)