Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
feat: add a proto message used for batch mode resource info (#200)
Browse files Browse the repository at this point in the history
* feat: add a proto message used for batch mode resource info for ServiceController V2

PiperOrigin-RevId: 527346677

Source-Link: googleapis/googleapis@c5aa447

Source-Link: googleapis/googleapis-gen@842801e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODQyODAxZTZhNzJiOGVmMDFkYWYwZWJkYWZmZGYyMzJkYzU2OWM3MCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

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] committed May 4, 2023
1 parent ac0a12f commit caa55bc
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions google/cloud/servicecontrol_v2/__init__.py
Expand Up @@ -28,6 +28,7 @@
ReportRequest,
ReportResponse,
ResourceInfo,
ResourceInfoList,
)

__all__ = (
Expand All @@ -37,5 +38,6 @@
"ReportRequest",
"ReportResponse",
"ResourceInfo",
"ResourceInfoList",
"ServiceControllerClient",
)
2 changes: 2 additions & 0 deletions google/cloud/servicecontrol_v2/types/__init__.py
Expand Up @@ -19,6 +19,7 @@
ReportRequest,
ReportResponse,
ResourceInfo,
ResourceInfoList,
)

__all__ = (
Expand All @@ -27,4 +28,5 @@
"ReportRequest",
"ReportResponse",
"ResourceInfo",
"ResourceInfoList",
)
16 changes: 16 additions & 0 deletions google/cloud/servicecontrol_v2/types/service_controller.py
Expand Up @@ -29,6 +29,7 @@
"CheckResponse",
"ReportRequest",
"ReportResponse",
"ResourceInfoList",
},
)

Expand Down Expand Up @@ -213,4 +214,19 @@ class ReportResponse(proto.Message):
"""


class ResourceInfoList(proto.Message):
r"""Message containing resource details in a batch mode.
Attributes:
resources (MutableSequence[google.cloud.servicecontrol_v2.types.ResourceInfo]):
The resource details.
"""

resources: MutableSequence["ResourceInfo"] = proto.RepeatedField(
proto.MESSAGE,
number=1,
message="ResourceInfo",
)


__all__ = tuple(sorted(__protobuf__.manifest))
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-service-control",
"version": "1.8.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-service-control",
"version": "1.8.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit caa55bc

Please sign in to comment.