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

Commit

Permalink
chore: Add service_yaml_parameters to py_gapic_library BUILD.bazel ta…
Browse files Browse the repository at this point in the history
…rgets (#243)

* fix: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets

PiperOrigin-RevId: 510187992

Source-Link: googleapis/googleapis@5edc235

Source-Link: googleapis/googleapis-gen@b0bedb7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBiZWRiNzJlNDc2NWEzZTBiNjc0YTI4YzUwZWEwZjlhOWIyNmE4OSJ9

* 🦉 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 Feb 17, 2023
1 parent 3fc33a3 commit a9fce2d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
21 changes: 20 additions & 1 deletion google/cloud/workflows_v1/services/workflows/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,26 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
"""
# Only create a new client if we do not already have one.
if self._operations_client is None:
http_options: Dict[str, List[Dict[str, str]]] = {}
http_options: Dict[str, List[Dict[str, str]]] = {
"google.longrunning.Operations.DeleteOperation": [
{
"method": "delete",
"uri": "/v1/{name=projects/*/locations/*/operations/*}",
},
],
"google.longrunning.Operations.GetOperation": [
{
"method": "get",
"uri": "/v1/{name=projects/*/locations/*/operations/*}",
},
],
"google.longrunning.Operations.ListOperations": [
{
"method": "get",
"uri": "/v1/{name=projects/*/locations/*}/operations",
},
],
}

rest_transport = operations_v1.OperationsRestTransport(
host=self._host,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,26 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
"""
# Only create a new client if we do not already have one.
if self._operations_client is None:
http_options: Dict[str, List[Dict[str, str]]] = {}
http_options: Dict[str, List[Dict[str, str]]] = {
"google.longrunning.Operations.DeleteOperation": [
{
"method": "delete",
"uri": "/v1beta/{name=projects/*/locations/*/operations/*}",
},
],
"google.longrunning.Operations.GetOperation": [
{
"method": "get",
"uri": "/v1beta/{name=projects/*/locations/*/operations/*}",
},
],
"google.longrunning.Operations.ListOperations": [
{
"method": "get",
"uri": "/v1beta/{name=projects/*/locations/*}/operations",
},
],
}

rest_transport = operations_v1.OperationsRestTransport(
host=self._host,
Expand Down

0 comments on commit a9fce2d

Please sign in to comment.