Skip to content

Commit

Permalink
chore: [Many APIs] Update gapic-generator-python to v1.18.5 (#12997)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 661268868

Source-Link:
googleapis/googleapis@f7d214c

Source-Link:
googleapis/googleapis-gen@79a8411
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWxvZ2dpbmcvLk93bEJvdC55YW1sIiwiaCI6Ijc5YTg0MTFiYmRiMjVhOTgzZmEzYWFlOGMwZTE0MzI3ZGYxMjlmOTQifQ==
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LW1pZ3JhdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiNzlhODQxMWJiZGIyNWE5ODNmYTNhYWU4YzBlMTQzMjdkZjEyOWY5NCJ9
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LXJlc2VydmF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI3OWE4NDExYmJkYjI1YTk4M2ZhM2FhZThjMGUxNDMyN2RmMTI5Zjk0In0=
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmctYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiNzlhODQxMWJiZGIyNWE5ODNmYTNhYWU4YzBlMTQzMjdkZjEyOWY5NCJ9
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmcvLk93bEJvdC55YW1sIiwiaCI6Ijc5YTg0MTFiYmRiMjVhOTgzZmEzYWFlOGMwZTE0MzI3ZGYxMjlmOTQifQ==
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbmFyeS1hdXRob3JpemF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI3OWE4NDExYmJkYjI1YTk4M2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jVhOTgzZmEzYWFlOGMwZTE0MzI3ZGYxMjlmOTQifQ==

---------

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 Aug 14, 2024
1 parent 5cf5a4c commit 0cc38a2
Show file tree
Hide file tree
Showing 280 changed files with 2,545 additions and 2,165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.4.5" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.4.5" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.11.9" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.11.9" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
from collections import OrderedDict
import functools
import re
from typing import (
Callable,
Expand Down Expand Up @@ -203,9 +202,7 @@ def universe_domain(self) -> str:
"""
return self._client._universe_domain

get_transport_class = functools.partial(
type(MigrationServiceClient).get_transport_class, type(MigrationServiceClient)
)
get_transport_class = MigrationServiceClient.get_transport_class

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def __init__(
Type[MigrationServiceTransport],
Callable[..., MigrationServiceTransport],
] = (
type(self).get_transport_class(transport)
MigrationServiceClient.get_transport_class(transport)
if isinstance(transport, str) or transport is None
else cast(Callable[..., MigrationServiceTransport], transport)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.11.9" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
from collections import OrderedDict
import functools
import re
from typing import (
Callable,
Expand Down Expand Up @@ -203,9 +202,7 @@ def universe_domain(self) -> str:
"""
return self._client._universe_domain

get_transport_class = functools.partial(
type(MigrationServiceClient).get_transport_class, type(MigrationServiceClient)
)
get_transport_class = MigrationServiceClient.get_transport_class

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def __init__(
Type[MigrationServiceTransport],
Callable[..., MigrationServiceTransport],
] = (
type(self).get_transport_class(transport)
MigrationServiceClient.get_transport_class(transport)
if isinstance(transport, str) or transport is None
else cast(Callable[..., MigrationServiceTransport], transport)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
from collections import OrderedDict
import functools
import re
from typing import (
Callable,
Expand Down Expand Up @@ -188,10 +187,7 @@ def universe_domain(self) -> str:
"""
return self._client._universe_domain

get_transport_class = functools.partial(
type(SqlTranslationServiceClient).get_transport_class,
type(SqlTranslationServiceClient),
)
get_transport_class = SqlTranslationServiceClient.get_transport_class

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def __init__(
Type[SqlTranslationServiceTransport],
Callable[..., SqlTranslationServiceTransport],
] = (
type(self).get_transport_class(transport)
SqlTranslationServiceClient.get_transport_class(transport)
if isinstance(transport, str) or transport is None
else cast(Callable[..., SqlTranslationServiceTransport], transport)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-bigquery-migration",
"version": "0.11.9"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-bigquery-migration",
"version": "0.11.9"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,22 +1306,23 @@ async def test_create_migration_workflow_async_use_cached_wrapped_rpc(
)

# Replace cached wrapped function with mock
mock_object = mock.AsyncMock()
mock_rpc = mock.AsyncMock()
mock_rpc.return_value = mock.Mock()
client._client._transport._wrapped_methods[
client._client._transport.create_migration_workflow
] = mock_object
] = mock_rpc

request = {}
await client.create_migration_workflow(request)

# Establish that the underlying gRPC stub method was called.
assert mock_object.call_count == 1
assert mock_rpc.call_count == 1

await client.create_migration_workflow(request)

# Establish that a new wrapper was not created for this call
assert wrapper_fn.call_count == 0
assert mock_object.call_count == 2
assert mock_rpc.call_count == 2


@pytest.mark.asyncio
Expand Down Expand Up @@ -1714,22 +1715,23 @@ async def test_get_migration_workflow_async_use_cached_wrapped_rpc(
)

# Replace cached wrapped function with mock
mock_object = mock.AsyncMock()
mock_rpc = mock.AsyncMock()
mock_rpc.return_value = mock.Mock()
client._client._transport._wrapped_methods[
client._client._transport.get_migration_workflow
] = mock_object
] = mock_rpc

request = {}
await client.get_migration_workflow(request)

# Establish that the underlying gRPC stub method was called.
assert mock_object.call_count == 1
assert mock_rpc.call_count == 1

await client.get_migration_workflow(request)

# Establish that a new wrapper was not created for this call
assert wrapper_fn.call_count == 0
assert mock_object.call_count == 2
assert mock_rpc.call_count == 2


@pytest.mark.asyncio
Expand Down Expand Up @@ -2108,22 +2110,23 @@ async def test_list_migration_workflows_async_use_cached_wrapped_rpc(
)

# Replace cached wrapped function with mock
mock_object = mock.AsyncMock()
mock_rpc = mock.AsyncMock()
mock_rpc.return_value = mock.Mock()
client._client._transport._wrapped_methods[
client._client._transport.list_migration_workflows
] = mock_object
] = mock_rpc

request = {}
await client.list_migration_workflows(request)

# Establish that the underlying gRPC stub method was called.
assert mock_object.call_count == 1
assert mock_rpc.call_count == 1

await client.list_migration_workflows(request)

# Establish that a new wrapper was not created for this call
assert wrapper_fn.call_count == 0
assert mock_object.call_count == 2
assert mock_rpc.call_count == 2


@pytest.mark.asyncio
Expand Down Expand Up @@ -2695,22 +2698,23 @@ async def test_delete_migration_workflow_async_use_cached_wrapped_rpc(
)

# Replace cached wrapped function with mock
mock_object = mock.AsyncMock()
mock_rpc = mock.AsyncMock()
mock_rpc.return_value = mock.Mock()
client._client._transport._wrapped_methods[
client._client._transport.delete_migration_workflow
] = mock_object
] = mock_rpc

request = {}
await client.delete_migration_workflow(request)

# Establish that the underlying gRPC stub method was called.
assert mock_object.call_count == 1
assert mock_rpc.call_count == 1

await client.delete_migration_workflow(request)

# Establish that a new wrapper was not created for this call
assert wrapper_fn.call_count == 0
assert mock_object.call_count == 2
assert mock_rpc.call_count == 2


@pytest.mark.asyncio
Expand Down Expand Up @@ -3067,22 +3071,23 @@ async def test_start_migration_workflow_async_use_cached_wrapped_rpc(
)

# Replace cached wrapped function with mock
mock_object = mock.AsyncMock()
mock_rpc = mock.AsyncMock()
mock_rpc.return_value = mock.Mock()
client._client._transport._wrapped_methods[
client._client._transport.start_migration_workflow
] = mock_object
] = mock_rpc

request = {}
await client.start_migration_workflow(request)

# Establish that the underlying gRPC stub method was called.
assert mock_object.call_count == 1
assert mock_rpc.call_count == 1

await client.start_migration_workflow(request)

# Establish that a new wrapper was not created for this call
assert wrapper_fn.call_count == 0
assert mock_object.call_count == 2
assert mock_rpc.call_count == 2


@pytest.mark.asyncio
Expand Down Expand Up @@ -3458,22 +3463,23 @@ async def test_get_migration_subtask_async_use_cached_wrapped_rpc(
)

# Replace cached wrapped function with mock
mock_object = mock.AsyncMock()
mock_rpc = mock.AsyncMock()
mock_rpc.return_value = mock.Mock()
client._client._transport._wrapped_methods[
client._client._transport.get_migration_subtask
] = mock_object
] = mock_rpc

request = {}
await client.get_migration_subtask(request)

# Establish that the underlying gRPC stub method was called.
assert mock_object.call_count == 1
assert mock_rpc.call_count == 1

await client.get_migration_subtask(request)

# Establish that a new wrapper was not created for this call
assert wrapper_fn.call_count == 0
assert mock_object.call_count == 2
assert mock_rpc.call_count == 2


@pytest.mark.asyncio
Expand Down Expand Up @@ -3858,22 +3864,23 @@ async def test_list_migration_subtasks_async_use_cached_wrapped_rpc(
)

# Replace cached wrapped function with mock
mock_object = mock.AsyncMock()
mock_rpc = mock.AsyncMock()
mock_rpc.return_value = mock.Mock()
client._client._transport._wrapped_methods[
client._client._transport.list_migration_subtasks
] = mock_object
] = mock_rpc

request = {}
await client.list_migration_subtasks(request)

# Establish that the underlying gRPC stub method was called.
assert mock_object.call_count == 1
assert mock_rpc.call_count == 1

await client.list_migration_subtasks(request)

# Establish that a new wrapper was not created for this call
assert wrapper_fn.call_count == 0
assert mock_object.call_count == 2
assert mock_rpc.call_count == 2


@pytest.mark.asyncio
Expand Down
Loading

0 comments on commit 0cc38a2

Please sign in to comment.