mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Oct 8 11:07:39 UTC 2025
This commit is contained in:
parent
a0434a4d7a
commit
6f9bb9a0f0
137 changed files with 5133 additions and 291 deletions
|
|
@ -5,6 +5,8 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud alpha storage objects compose SOURCE [SOURCE ...] DESTINATION
|
||||
[--additional-headers=HEADER=VALUE]
|
||||
[--custom-contexts=[CUSTOM_CONTEXTS_KEYS_AND_VALUES,...]
|
||||
| --custom-contexts-file=CUSTOM_CONTEXTS_FILE]
|
||||
[--if-generation-match=GENERATION
|
||||
--if-metageneration-match=METAGENERATION]
|
||||
[--retain-until=DATETIME --retention-mode=RETENTION_MODE]
|
||||
|
|
@ -26,6 +28,14 @@ EXAMPLES
|
|||
$ gcloud alpha storage objects compose gs://bucket/a.txt \
|
||||
gs://bucket/b.txt gs://bucket/target.txt
|
||||
|
||||
Contexts are merged from source objects on the composed object by default.
|
||||
However, the following command overwrites custom contexts on composed
|
||||
object:
|
||||
|
||||
$ gcloud alpha storage objects compose gs://bucket/a.txt \
|
||||
gs://bucket/b.txt gs://bucket/target.txt \
|
||||
--custom-contexts=key1=value1,key2=value2
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
SOURCE [SOURCE ...]
|
||||
The list of source objects that will be concatenated into a single
|
||||
|
|
@ -41,6 +51,38 @@ FLAGS
|
|||
Overrides the default storage/additional_headers property value for
|
||||
this command invocation.
|
||||
|
||||
OBJECT CONTEXTS FLAGS
|
||||
Group that allow users to handle object contexts.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
--custom-contexts=[CUSTOM_CONTEXTS_KEYS_AND_VALUES,...]
|
||||
Sets custom contexts on objects. The existing custom contexts (if
|
||||
any) would be overwritten.
|
||||
|
||||
--custom-contexts-file=CUSTOM_CONTEXTS_FILE
|
||||
Path to a local JSON or YAML file containing custom contexts one
|
||||
wants to set on an object. For example:
|
||||
|
||||
1. The following JSON document shows two key value pairs, i.e. (key1,
|
||||
value1) and (key2, value2):
|
||||
|
||||
{
|
||||
"key1": {"value": "value1"},
|
||||
"key2": {"value": "value2"}
|
||||
}
|
||||
|
||||
2. The following YAML document shows two key value pairs, i.e. (key1,
|
||||
value1) and (key2, value2):
|
||||
|
||||
key1:
|
||||
value: value1
|
||||
key2:
|
||||
value: value2
|
||||
|
||||
Note: Currently object contexts only supports string format for
|
||||
values.
|
||||
|
||||
PRECONDITION FLAGS
|
||||
--if-generation-match=GENERATION
|
||||
Execute only if the generation matches the generation of the requested
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue