Updates the attributes of the TagKey resource.
Scopes
You will need authorization for the https://www.googleapis.com/auth/cloud-platform scope to make a valid call.
If unset, the scope for this method defaults to https://www.googleapis.com/auth/cloud-platform.
You can set the scope for this method like this: cloudresourcemanager3 --scope <scope> tag-keys patch ...
Required Scalar Argument
- <name> (string)
- Immutable. The resource name for a TagKey. Must be in the format
tagKeys/{tag_key_id}
, wheretag_key_id
is the generated numeric id for the TagKey.
- Immutable. The resource name for a TagKey. Must be in the format
Required Request Value
The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.
For example, a structure like this:
TagKey:
create-time: string
description: string
etag: string
name: string
namespaced-name: string
parent: string
purpose: string
purpose-data: { string: string }
short-name: string
update-time: string
can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.
-r . create-time=voluptua.
- Output only. Creation time.
description=et
- Optional. User-assigned description of the TagKey. Must not exceed 256 characters. Read-write.
etag=erat
- Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagKeyRequest for details.
name=consetetur
- Immutable. The resource name for a TagKey. Must be in the format
tagKeys/{tag_key_id}
, wheretag_key_id
is the generated numeric id for the TagKey.
- Immutable. The resource name for a TagKey. Must be in the format
namespaced-name=amet.
- Output only. Immutable. Namespaced name of the TagKey.
parent=sed
- Immutable. The resource name of the TagKey's parent. A TagKey can be parented by an Organization or a Project. For a TagKey parented by an Organization, its parent must be in the form
organizations/{org_id}
. For a TagKey parented by a Project, its parent can be in the formprojects/{project_id}
orprojects/{project_number}
.
- Immutable. The resource name of the TagKey's parent. A TagKey can be parented by an Organization or a Project. For a TagKey parented by an Organization, its parent must be in the form
purpose=takimata
- Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set.
purpose-data=key=dolores
- Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for
Purpose
for formatting of this field. Purpose data cannot be changed once set. - the value will be associated with the given
key
- Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for
short-name=gubergren
- Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
update-time=et
- Output only. Update time.
About Cursors
The cursor position is key to comfortably set complex nested structures. The following rules apply:
- The cursor position is always set relative to the current one, unless the field name starts with the
.
character. Fields can be nested such as in-r f.s.o
. - The cursor position is set relative to the top-level structure if it starts with
.
, e.g.-r .s.s
- You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify
-r struct.sub_struct=bar
. - You can move the cursor one level up by using
..
. Each additional.
moves it up one additional level. E.g....
would go three levels up.
Optional Output Flags
The method's return value a JSON encoded structure, which will be written to standard output by default.
- -o out
- out specifies the destination to which to write the server's result to.
It will be a JSON-encoded structure.
The destination may be
-
to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.
- out specifies the destination to which to write the server's result to.
It will be a JSON-encoded structure.
The destination may be
Optional Method Properties
You may set the following properties to further configure the call. Please note that -p
is followed by one
or more key-value-pairs, and is called like this -p k1=v1 k2=v2
even though the listing below repeats the
-p
for completeness.
-
-p update-mask=string
- Fields to be updated. The mask may only contain
description
oretag
. If omitted entirely, bothdescription
andetag
are assumed to be significant.
- Fields to be updated. The mask may only contain
-
-p validate-only=boolean
- Set as true to perform validations necessary for updating the resource, but not actually perform the action.
Optional General Properties
The following properties can configure any call, and are not specific to this method.
-
-p $-xgafv=string
- V1 error format.
-
-p access-token=string
- OAuth access token.
-
-p alt=string
- Data format for response.
-
-p callback=string
- JSONP
-
-p fields=string
- Selector specifying which fields to include in a partial response.
-
-p key=string
- API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
-
-p oauth-token=string
- OAuth 2.0 token for the current user.
-
-p pretty-print=boolean
- Returns response with indentations and line breaks.
-
-p quota-user=string
- Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
-
-p upload-type=string
- Legacy upload protocol for media (e.g. "media", "multipart").
-
-p upload-protocol=string
- Upload protocol for media (e.g. "raw", "multipart").