Skip to content

Commit

Permalink
chore: bump gapic-generator-python to version 1.4.0 (#340)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 1.3.1

PiperOrigin-RevId: 472772457

Source-Link: googleapis/googleapis@855b74d

Source-Link: googleapis/googleapis-gen@b64b1e7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjY0YjFlN2RhM2UxMzhmMTVjYTM2MTU1MmVmMDU0NWU1NDg5MWI0ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: bump gapic-generator-python to version 1.4.0

PiperOrigin-RevId: 472872910

Source-Link: googleapis/googleapis@89404ee

Source-Link: googleapis/googleapis-gen@f19e0dc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE5ZTBkYzMyYTUxNzE4ODk2YTk3ZGQ0ZjE5YWNiZWQyMWEzMTllYyJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 8, 2022
1 parent a9ed101 commit d9381d1
Show file tree
Hide file tree
Showing 85 changed files with 1,237 additions and 1,152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# try/except added for compatibility with python < 3.8
try:
from unittest import mock
from unittest.mock import AsyncMock
except ImportError:
from unittest.mock import AsyncMock # pragma: NO COVER
except ImportError: # pragma: NO COVER
import mock

import grpc
Expand All @@ -34,6 +34,7 @@
from requests import Response
from requests import Request, PreparedRequest
from requests.sessions import Session
from google.protobuf import json_format

from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
Expand Down Expand Up @@ -771,7 +772,7 @@ def test_aggregated_list_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.AcceleratorTypeAggregatedList
post.return_value = compute.AcceleratorTypeAggregatedList()

client.aggregated_list(
request,
Expand Down Expand Up @@ -1141,7 +1142,7 @@ def test_get_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.AcceleratorType
post.return_value = compute.AcceleratorType()

client.get(
request,
Expand Down Expand Up @@ -1455,7 +1456,7 @@ def test_list_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.AcceleratorTypeList
post.return_value = compute.AcceleratorTypeList()

client.list(
request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# try/except added for compatibility with python < 3.8
try:
from unittest import mock
from unittest.mock import AsyncMock
except ImportError:
from unittest.mock import AsyncMock # pragma: NO COVER
except ImportError: # pragma: NO COVER
import mock

import grpc
Expand All @@ -34,6 +34,7 @@
from requests import Response
from requests import Request, PreparedRequest
from requests.sessions import Session
from google.protobuf import json_format

from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
Expand Down Expand Up @@ -738,7 +739,7 @@ def test_aggregated_list_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.AddressAggregatedList
post.return_value = compute.AddressAggregatedList()

client.aggregated_list(
request,
Expand Down Expand Up @@ -1123,7 +1124,7 @@ def test_delete_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.delete(
request,
Expand Down Expand Up @@ -1430,7 +1431,7 @@ def test_delete_unary_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.delete_unary(
request,
Expand Down Expand Up @@ -1747,7 +1748,7 @@ def test_get_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Address
post.return_value = compute.Address()

client.get(
request,
Expand Down Expand Up @@ -2092,7 +2093,7 @@ def test_insert_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.insert(
request,
Expand Down Expand Up @@ -2430,7 +2431,7 @@ def test_insert_unary_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.insert_unary(
request,
Expand Down Expand Up @@ -2749,7 +2750,7 @@ def test_list_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.AddressList
post.return_value = compute.AddressList()

client.list(
request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# try/except added for compatibility with python < 3.8
try:
from unittest import mock
from unittest.mock import AsyncMock
except ImportError:
from unittest.mock import AsyncMock # pragma: NO COVER
except ImportError: # pragma: NO COVER
import mock

import grpc
Expand All @@ -34,6 +34,7 @@
from requests import Response
from requests import Request, PreparedRequest
from requests.sessions import Session
from google.protobuf import json_format

from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
Expand Down Expand Up @@ -744,7 +745,7 @@ def test_aggregated_list_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.AutoscalerAggregatedList
post.return_value = compute.AutoscalerAggregatedList()

client.aggregated_list(
request,
Expand Down Expand Up @@ -1136,7 +1137,7 @@ def test_delete_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.delete(
request,
Expand Down Expand Up @@ -1449,7 +1450,7 @@ def test_delete_unary_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.delete_unary(
request,
Expand Down Expand Up @@ -1756,7 +1757,7 @@ def test_get_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Autoscaler
post.return_value = compute.Autoscaler()

client.get(
request,
Expand Down Expand Up @@ -2130,7 +2131,7 @@ def test_insert_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.insert(
request,
Expand Down Expand Up @@ -2528,7 +2529,7 @@ def test_insert_unary_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.insert_unary(
request,
Expand Down Expand Up @@ -2880,7 +2881,7 @@ def test_list_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.AutoscalerList
post.return_value = compute.AutoscalerList()

client.list(
request,
Expand Down Expand Up @@ -3311,7 +3312,7 @@ def test_patch_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.patch(
request,
Expand Down Expand Up @@ -3715,7 +3716,7 @@ def test_patch_unary_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.patch_unary(
request,
Expand Down Expand Up @@ -4143,7 +4144,7 @@ def test_update_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.update(
request,
Expand Down Expand Up @@ -4551,7 +4552,7 @@ def test_update_unary_rest_interceptors(null_interceptor):
("cephalopod", "squid"),
]
pre.return_value = request, metadata
post.return_value = compute.Operation
post.return_value = compute.Operation()

client.update_unary(
request,
Expand Down
Loading

0 comments on commit d9381d1

Please sign in to comment.