Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit c7d2ef1

Browse filesBrowse files
authored
Merge branch 'main' into release-please--branches--main
2 parents 4589fa0 + e0c9020 commit c7d2ef1
Copy full SHA for c7d2ef1

File tree

Expand file treeCollapse file tree

4 files changed

+136
-4
lines changed
Filter options
  • google/cloud
    • automl_v1/services
    • automl_v1beta1/services
Expand file treeCollapse file tree

4 files changed

+136
-4
lines changed

‎google/cloud/automl_v1/services/auto_ml/transports/rest.py

Copy file name to clipboardExpand all lines: google/cloud/automl_v1/services/auto_ml/transports/rest.py
+34-1Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
721721
"""
722722
# Only create a new client if we do not already have one.
723723
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+
}
725758

726759
rest_transport = operations_v1.OperationsRestTransport(
727760
host=self._host,

‎google/cloud/automl_v1/services/prediction_service/transports/rest.py

Copy file name to clipboardExpand all lines: google/cloud/automl_v1/services/prediction_service/transports/rest.py
+34-1Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
249249
"""
250250
# Only create a new client if we do not already have one.
251251
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+
}
253286

254287
rest_transport = operations_v1.OperationsRestTransport(
255288
host=self._host,

‎google/cloud/automl_v1beta1/services/auto_ml/transports/rest.py

Copy file name to clipboardExpand all lines: google/cloud/automl_v1beta1/services/auto_ml/transports/rest.py
+34-1Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
908908
"""
909909
# Only create a new client if we do not already have one.
910910
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+
}
912945

913946
rest_transport = operations_v1.OperationsRestTransport(
914947
host=self._host,

‎google/cloud/automl_v1beta1/services/prediction_service/transports/rest.py

Copy file name to clipboardExpand all lines: google/cloud/automl_v1beta1/services/prediction_service/transports/rest.py
+34-1Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,40 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
249249
"""
250250
# Only create a new client if we do not already have one.
251251
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+
}
253286

254287
rest_transport = operations_v1.OperationsRestTransport(
255288
host=self._host,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.