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

Commit

Permalink
Merge branch 'main' into release-please--branches--main
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Feb 17, 2023
2 parents 2d60ca2 + dc09068 commit 7427873
Showing 1 changed file with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,33 @@ 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.CancelOperation": [
{
"method": "post",
"uri": "/v1alpha1/{name=projects/*/locations/*/operations/*}:cancel",
"body": "*",
},
],
"google.longrunning.Operations.DeleteOperation": [
{
"method": "delete",
"uri": "/v1alpha1/{name=projects/*/locations/*/operations/*}",
},
],
"google.longrunning.Operations.GetOperation": [
{
"method": "get",
"uri": "/v1alpha1/{name=projects/*/locations/*/operations/*}",
},
],
"google.longrunning.Operations.ListOperations": [
{
"method": "get",
"uri": "/v1alpha1/{name=projects/*/locations/*}/operations",
},
],
}

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

0 comments on commit 7427873

Please sign in to comment.