Skip to content

Commit

Permalink
Add increased length & Unicode tagkey and tagvalue shortname support (G…
Browse files Browse the repository at this point in the history
…oogleCloudPlatform#11827)

Co-authored-by: Nick Elliot <[email protected]>
  • Loading branch information
2 people authored and akshat-jindal-nit committed Nov 18, 2024
1 parent 8a85740 commit b80002e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mmv1/products/tags/TagKey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ properties:
description: |
Input only. 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.
The short name can have a maximum length of 256 characters. The permitted character set for the shortName includes all UTF-8 encoded Unicode characters except single quotes ('), double quotes ("), backslashes (\\), and forward slashes (/).
required: true
immutable: true
validation:
function: 'validation.StringLenBetween(1, 63)'
function: 'validation.StringLenBetween(1, 256)'
- name: 'namespacedName'
type: String
description: |
Expand Down
4 changes: 2 additions & 2 deletions mmv1/products/tags/TagValue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ properties:
description: |
Input only. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
The short name can have a maximum length of 256 characters. The permitted character set for the shortName includes all UTF-8 encoded Unicode characters except single quotes ('), double quotes ("), backslashes (\\), and forward slashes (/).
required: true
immutable: true
validation:
function: 'validation.StringLenBetween(1, 63)'
function: 'validation.StringLenBetween(1, 256)'
- name: 'namespacedName'
type: String
description: |
Expand Down

0 comments on commit b80002e

Please sign in to comment.