Skip to content

Commit 6e4402e

Browse files
chore: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets (#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>
1 parent 72f6388 commit 6e4402e

File tree

2 files changed

+40
-2
lines changed
  • packages/google-cloud-workflows/google/cloud
    • workflows_v1beta/services/workflows/transports
    • workflows_v1/services/workflows/transports

2 files changed

+40
-2
lines changed

packages/google-cloud-workflows/google/cloud/workflows_v1/services/workflows/transports/rest.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,26 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
337337
"""
338338
# Only create a new client if we do not already have one.
339339
if self._operations_client is None:
340-
http_options: Dict[str, List[Dict[str, str]]] = {}
340+
http_options: Dict[str, List[Dict[str, str]]] = {
341+
"google.longrunning.Operations.DeleteOperation": [
342+
{
343+
"method": "delete",
344+
"uri": "/v1/{name=projects/*/locations/*/operations/*}",
345+
},
346+
],
347+
"google.longrunning.Operations.GetOperation": [
348+
{
349+
"method": "get",
350+
"uri": "/v1/{name=projects/*/locations/*/operations/*}",
351+
},
352+
],
353+
"google.longrunning.Operations.ListOperations": [
354+
{
355+
"method": "get",
356+
"uri": "/v1/{name=projects/*/locations/*}/operations",
357+
},
358+
],
359+
}
341360

342361
rest_transport = operations_v1.OperationsRestTransport(
343362
host=self._host,

packages/google-cloud-workflows/google/cloud/workflows_v1beta/services/workflows/transports/rest.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,26 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
337337
"""
338338
# Only create a new client if we do not already have one.
339339
if self._operations_client is None:
340-
http_options: Dict[str, List[Dict[str, str]]] = {}
340+
http_options: Dict[str, List[Dict[str, str]]] = {
341+
"google.longrunning.Operations.DeleteOperation": [
342+
{
343+
"method": "delete",
344+
"uri": "/v1beta/{name=projects/*/locations/*/operations/*}",
345+
},
346+
],
347+
"google.longrunning.Operations.GetOperation": [
348+
{
349+
"method": "get",
350+
"uri": "/v1beta/{name=projects/*/locations/*/operations/*}",
351+
},
352+
],
353+
"google.longrunning.Operations.ListOperations": [
354+
{
355+
"method": "get",
356+
"uri": "/v1beta/{name=projects/*/locations/*}/operations",
357+
},
358+
],
359+
}
341360

342361
rest_transport = operations_v1.OperationsRestTransport(
343362
host=self._host,

0 commit comments

Comments
 (0)