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

Commit 106bf60

Browse files
authored
Merge branch 'main' into release-please--branches--main
2 parents 80b2e19 + a9fce2d commit 106bf60

File tree

2 files changed

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

2 files changed

+40
-2
lines changed

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,

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)