Skip to content

Commit 34ca4e2

Browse files
abd-googNickElliot
authored andcommitted
Add increased length & Unicode tagkey and tagvalue shortname support (GoogleCloudPlatform#11827)
Co-authored-by: Nick Elliot <[email protected]>
1 parent 0b252bd commit 34ca4e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mmv1/products/tags/TagKey.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ properties:
8383
description: |
8484
Input only. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace.
8585
86-
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.
86+
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 (/).
8787
required: true
8888
immutable: true
8989
validation:
90-
function: 'validation.StringLenBetween(1, 63)'
90+
function: 'validation.StringLenBetween(1, 256)'
9191
- name: 'namespacedName'
9292
type: String
9393
description: |

mmv1/products/tags/TagValue.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ properties:
8686
description: |
8787
Input only. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
8888
89-
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.
89+
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 (/).
9090
required: true
9191
immutable: true
9292
validation:
93-
function: 'validation.StringLenBetween(1, 63)'
93+
function: 'validation.StringLenBetween(1, 256)'
9494
- name: 'namespacedName'
9595
type: String
9696
description: |

0 commit comments

Comments
 (0)