Skip to content

Commit

Permalink
feat: [google-cloud-asset] add tag key id support (#12528)
Browse files Browse the repository at this point in the history
- [ ] 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Mar 28, 2024
1 parent 66a91f7 commit 2c17f60
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/google-cloud-asset/google/cloud/asset_v1/types/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ class Tag(proto.Message):
{ORG_ID}/{TAG_KEY_SHORT_NAME}.
This field is a member of `oneof`_ ``_tag_key``.
tag_key_id (str):
TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
This field is a member of `oneof`_ ``_tag_key_id``.
tag_value (str):
TagValue namespaced name, in the format of
{ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
Expand All @@ -539,6 +543,11 @@ class Tag(proto.Message):
number=1,
optional=True,
)
tag_key_id: str = proto.Field(
proto.STRING,
number=2,
optional=True,
)
tag_value: str = proto.Field(
proto.STRING,
number=3,
Expand Down Expand Up @@ -904,6 +913,7 @@ class ResourceSearchResult(proto.Message):
- ``tagKeys:"123456789/env*"``
- ``tagKeys="123456789/env"``
- ``tagKeys:"env"``
- ``tagKeyIds="tagKeys/123"``
- ``tagValues:"env"``
- ``tagValues:"env/prod"``
- ``tagValues:"123456789/env/prod*"``
Expand All @@ -927,6 +937,7 @@ class ResourceSearchResult(proto.Message):
- ``effectiveTagKeys:"123456789/env*"``
- ``effectiveTagKeys="123456789/env"``
- ``effectiveTagKeys:"env"``
- ``effectiveTagKeyIds="tagKeys/123"``
- ``effectiveTagValues:"env"``
- ``effectiveTagValues:"env/prod"``
- ``effectiveTagValues:"123456789/env/prod*"``
Expand Down

0 comments on commit 2c17f60

Please sign in to comment.