From b80002e21df13a2fc3c65a22ccd5c4c3110dd19e Mon Sep 17 00:00:00 2001 From: abd-goog <156919569+abd-goog@users.noreply.github.com> Date: Wed, 2 Oct 2024 01:47:29 +0530 Subject: [PATCH] Add increased length & Unicode tagkey and tagvalue shortname support (#11827) Co-authored-by: Nick Elliot --- mmv1/products/tags/TagKey.yaml | 4 ++-- mmv1/products/tags/TagValue.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mmv1/products/tags/TagKey.yaml b/mmv1/products/tags/TagKey.yaml index c1a94d08e936..9391e856684b 100644 --- a/mmv1/products/tags/TagKey.yaml +++ b/mmv1/products/tags/TagKey.yaml @@ -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: | diff --git a/mmv1/products/tags/TagValue.yaml b/mmv1/products/tags/TagValue.yaml index a7e7a8c4594a..fd9d9c38ac41 100644 --- a/mmv1/products/tags/TagValue.yaml +++ b/mmv1/products/tags/TagValue.yaml @@ -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: |