Skip to content

Commit 2c17f60

Browse files
feat: [google-cloud-asset] add tag key id support (#12528)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add tag key id support docs: add tagKeyIds example for ResourceSearchResult.tags END_COMMIT_OVERRIDE PiperOrigin-RevId: 619997195 Source-Link: googleapis/googleapis@a585563 Source-Link: googleapis/googleapis-gen@086562a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiIwODY1NjJhMTRkMDM2NjAxY2FjM2Q0MjUxMThiMGIyYTI4ZWQyYTQ5In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 66a91f7 commit 2c17f60

File tree

1 file changed

+11
-0
lines changed
  • packages/google-cloud-asset/google/cloud/asset_v1/types

1 file changed

+11
-0
lines changed

packages/google-cloud-asset/google/cloud/asset_v1/types/assets.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,10 @@ class Tag(proto.Message):
523523
{ORG_ID}/{TAG_KEY_SHORT_NAME}.
524524
525525
This field is a member of `oneof`_ ``_tag_key``.
526+
tag_key_id (str):
527+
TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
528+
529+
This field is a member of `oneof`_ ``_tag_key_id``.
526530
tag_value (str):
527531
TagValue namespaced name, in the format of
528532
{ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
@@ -539,6 +543,11 @@ class Tag(proto.Message):
539543
number=1,
540544
optional=True,
541545
)
546+
tag_key_id: str = proto.Field(
547+
proto.STRING,
548+
number=2,
549+
optional=True,
550+
)
542551
tag_value: str = proto.Field(
543552
proto.STRING,
544553
number=3,
@@ -904,6 +913,7 @@ class ResourceSearchResult(proto.Message):
904913
- ``tagKeys:"123456789/env*"``
905914
- ``tagKeys="123456789/env"``
906915
- ``tagKeys:"env"``
916+
- ``tagKeyIds="tagKeys/123"``
907917
- ``tagValues:"env"``
908918
- ``tagValues:"env/prod"``
909919
- ``tagValues:"123456789/env/prod*"``
@@ -927,6 +937,7 @@ class ResourceSearchResult(proto.Message):
927937
- ``effectiveTagKeys:"123456789/env*"``
928938
- ``effectiveTagKeys="123456789/env"``
929939
- ``effectiveTagKeys:"env"``
940+
- ``effectiveTagKeyIds="tagKeys/123"``
930941
- ``effectiveTagValues:"env"``
931942
- ``effectiveTagValues:"env/prod"``
932943
- ``effectiveTagValues:"123456789/env/prod*"``

0 commit comments

Comments
 (0)