Skip to content

Commit

Permalink
feat: [google-cloud-service-control] include api_key_uid in service c…
Browse files Browse the repository at this point in the history
…ontrol check response (#12332)

BEGIN_COMMIT_OVERRIDE

feat: include api_key_uid in service control check response

END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 608766712

Source-Link:
googleapis/googleapis@7ac2785

Source-Link:
googleapis/googleapis-gen@3864b57
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2UtY29udHJvbC8uT3dsQm90LnlhbWwiLCJoIjoiMzg2NGI1NzU4YjlkMTAyMjc5NDVhYjk3M2YzYzY5OGE1MzZkMmY3OCJ9

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: ohmayr <omairnaveed@ymail.com>
  • Loading branch information
3 people authored Feb 21, 2024
1 parent a7231e0 commit 8b20516
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ class CheckInfo(proto.Message):
performance and allow better aggregation.
consumer_info (google.cloud.servicecontrol_v1.types.CheckResponse.ConsumerInfo):
Consumer info of this check.
api_key_uid (str):
The unique id of the api key in the format of
"apikey:<UID>". This field will be populated
when the consumer passed to Service Control is
an API key and all the API key related
validations are successful.
"""

unused_arguments: MutableSequence[str] = proto.RepeatedField(
Expand All @@ -119,6 +125,10 @@ class CheckInfo(proto.Message):
number=2,
message="CheckResponse.ConsumerInfo",
)
api_key_uid: str = proto.Field(
proto.STRING,
number=5,
)

class ConsumerInfo(proto.Message):
r"""``ConsumerInfo`` provides information about the consumer.
Expand Down

0 comments on commit 8b20516

Please sign in to comment.