This repository was archived by the owner on Dec 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +136
-4
lines changed
Filter options
prediction_service/transports
prediction_service/transports Expand file tree Collapse file tree 4 files changed +136
-4
lines changed
Original file line number Diff line number Diff line change @@ -721,7 +721,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
721
721
"""
722
722
# Only create a new client if we do not already have one.
723
723
if self ._operations_client is None :
724
- http_options : Dict [str , List [Dict [str , str ]]] = {}
724
+ http_options : Dict [str , List [Dict [str , str ]]] = {
725
+ "google.longrunning.Operations.CancelOperation" : [
726
+ {
727
+ "method" : "post" ,
728
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}:cancel" ,
729
+ "body" : "*" ,
730
+ },
731
+ ],
732
+ "google.longrunning.Operations.DeleteOperation" : [
733
+ {
734
+ "method" : "delete" ,
735
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}" ,
736
+ },
737
+ ],
738
+ "google.longrunning.Operations.GetOperation" : [
739
+ {
740
+ "method" : "get" ,
741
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}" ,
742
+ },
743
+ ],
744
+ "google.longrunning.Operations.ListOperations" : [
745
+ {
746
+ "method" : "get" ,
747
+ "uri" : "/v1/{name=projects/*/locations/*}/operations" ,
748
+ },
749
+ ],
750
+ "google.longrunning.Operations.WaitOperation" : [
751
+ {
752
+ "method" : "post" ,
753
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}:wait" ,
754
+ "body" : "*" ,
755
+ },
756
+ ],
757
+ }
725
758
726
759
rest_transport = operations_v1 .OperationsRestTransport (
727
760
host = self ._host ,
Original file line number Diff line number Diff line change @@ -249,7 +249,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
249
249
"""
250
250
# Only create a new client if we do not already have one.
251
251
if self ._operations_client is None :
252
- http_options : Dict [str , List [Dict [str , str ]]] = {}
252
+ http_options : Dict [str , List [Dict [str , str ]]] = {
253
+ "google.longrunning.Operations.CancelOperation" : [
254
+ {
255
+ "method" : "post" ,
256
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}:cancel" ,
257
+ "body" : "*" ,
258
+ },
259
+ ],
260
+ "google.longrunning.Operations.DeleteOperation" : [
261
+ {
262
+ "method" : "delete" ,
263
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}" ,
264
+ },
265
+ ],
266
+ "google.longrunning.Operations.GetOperation" : [
267
+ {
268
+ "method" : "get" ,
269
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}" ,
270
+ },
271
+ ],
272
+ "google.longrunning.Operations.ListOperations" : [
273
+ {
274
+ "method" : "get" ,
275
+ "uri" : "/v1/{name=projects/*/locations/*}/operations" ,
276
+ },
277
+ ],
278
+ "google.longrunning.Operations.WaitOperation" : [
279
+ {
280
+ "method" : "post" ,
281
+ "uri" : "/v1/{name=projects/*/locations/*/operations/*}:wait" ,
282
+ "body" : "*" ,
283
+ },
284
+ ],
285
+ }
253
286
254
287
rest_transport = operations_v1 .OperationsRestTransport (
255
288
host = self ._host ,
Original file line number Diff line number Diff line change @@ -908,7 +908,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
908
908
"""
909
909
# Only create a new client if we do not already have one.
910
910
if self ._operations_client is None :
911
- http_options : Dict [str , List [Dict [str , str ]]] = {}
911
+ http_options : Dict [str , List [Dict [str , str ]]] = {
912
+ "google.longrunning.Operations.CancelOperation" : [
913
+ {
914
+ "method" : "post" ,
915
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}:cancel" ,
916
+ "body" : "*" ,
917
+ },
918
+ ],
919
+ "google.longrunning.Operations.DeleteOperation" : [
920
+ {
921
+ "method" : "delete" ,
922
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}" ,
923
+ },
924
+ ],
925
+ "google.longrunning.Operations.GetOperation" : [
926
+ {
927
+ "method" : "get" ,
928
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}" ,
929
+ },
930
+ ],
931
+ "google.longrunning.Operations.ListOperations" : [
932
+ {
933
+ "method" : "get" ,
934
+ "uri" : "/v1beta1/{name=projects/*/locations/*}/operations" ,
935
+ },
936
+ ],
937
+ "google.longrunning.Operations.WaitOperation" : [
938
+ {
939
+ "method" : "post" ,
940
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}:wait" ,
941
+ "body" : "*" ,
942
+ },
943
+ ],
944
+ }
912
945
913
946
rest_transport = operations_v1 .OperationsRestTransport (
914
947
host = self ._host ,
Original file line number Diff line number Diff line change @@ -249,7 +249,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
249
249
"""
250
250
# Only create a new client if we do not already have one.
251
251
if self ._operations_client is None :
252
- http_options : Dict [str , List [Dict [str , str ]]] = {}
252
+ http_options : Dict [str , List [Dict [str , str ]]] = {
253
+ "google.longrunning.Operations.CancelOperation" : [
254
+ {
255
+ "method" : "post" ,
256
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}:cancel" ,
257
+ "body" : "*" ,
258
+ },
259
+ ],
260
+ "google.longrunning.Operations.DeleteOperation" : [
261
+ {
262
+ "method" : "delete" ,
263
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}" ,
264
+ },
265
+ ],
266
+ "google.longrunning.Operations.GetOperation" : [
267
+ {
268
+ "method" : "get" ,
269
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}" ,
270
+ },
271
+ ],
272
+ "google.longrunning.Operations.ListOperations" : [
273
+ {
274
+ "method" : "get" ,
275
+ "uri" : "/v1beta1/{name=projects/*/locations/*}/operations" ,
276
+ },
277
+ ],
278
+ "google.longrunning.Operations.WaitOperation" : [
279
+ {
280
+ "method" : "post" ,
281
+ "uri" : "/v1beta1/{name=projects/*/locations/*/operations/*}:wait" ,
282
+ "body" : "*" ,
283
+ },
284
+ ],
285
+ }
253
286
254
287
rest_transport = operations_v1 .OperationsRestTransport (
255
288
host = self ._host ,
You can’t perform that action at this time.
0 commit comments