Skip to content

Commit 45d4517

Browse files
chore: Configure Ruby clients for google-ads-ad_manager (#1209)
* feat: add INTERVAL API PiperOrigin-RevId: 680405503 Source-Link: googleapis/googleapis@2c9fb37 Source-Link: googleapis/googleapis-gen@317c7d1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzE3YzdkMWIxYjgwMWZlNjYzZjg3YmZkMGJhZTU0ZmQ2NTI2ZGU4NyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: update comment for PROFILE QueryMode feat: add new QueryMode enum values (WITH_STATS, WITH_PLAN_AND_STATS) PiperOrigin-RevId: 680628448 Source-Link: googleapis/googleapis@72a5151 Source-Link: googleapis/googleapis-gen@146c3e8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTQ2YzNlOGRhODc3Mzg4MDQ3MDliN2YzZDI2NGE4ZTMzYWUzOGQ3MSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Define ReplicaComputeCapacity and AsymmetricAutoscalingOption docs: A comment for field `node_count` in message `spanner.admin.instance.v1.Instance` is changed docs: A comment for field `processing_units` in message `spanner.admin.instance.v1.Instance` is changed PiperOrigin-RevId: 681615472 Source-Link: googleapis/googleapis@dd47718 Source-Link: googleapis/googleapis-gen@7f0f9b7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2YwZjliNzQ2NmNiNTE3NzY5YjU0OWM1ZTJjMmI5MTI0OTI4NjJmMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: protos for R/W transaction support on multiplexed sessions PiperOrigin-RevId: 683879049 Source-Link: googleapis/googleapis@2b6b93b Source-Link: googleapis/googleapis-gen@2f0c933 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmYwYzkzM2IwMDMxNjRkNWNkMTIwNTA1YTk4Yzg3Yzk1ODg4ZDk4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to v1.19.1 PiperOrigin-RevId: 684571179 Source-Link: googleapis/googleapis@fbdc238 Source-Link: googleapis/googleapis-gen@3a2cdcf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2EyY2RjZmI4MGMyZDBmNWVjMGNjNjYzYzJiYWIwYTk0ODYyMjlkMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat(spanner): Add support for Cloud Spanner Default Backup Schedules PiperOrigin-RevId: 688946300 Source-Link: googleapis/googleapis@b11e6b0 Source-Link: googleapis/googleapis-gen@f93f56b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjkzZjU2YjIxZmYwMWU0OTk5NzdjNGRkNTQ2ODljY2UxYjdjZjUzMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Configure Ruby clients for google-ads-ad_manager PiperOrigin-RevId: 689139590 Source-Link: googleapis/googleapis@296f2ac Source-Link: googleapis/googleapis-gen@2692736 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjY5MjczNjJlMGFhMTI5MzI1OGZjMjNmZTNjZTgzYzVjMjFkNWZiYiJ9 * 🦉 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> Co-authored-by: Sri Harsha CH <[email protected]>
1 parent 43c190b commit 45d4517

33 files changed

+21899
-16117
lines changed

google/cloud/spanner_admin_database_v1/services/database_admin/async_client.py

+4-20
Original file line numberDiff line numberDiff line change
@@ -3602,11 +3602,7 @@ async def list_operations(
36023602

36033603
# Wrap the RPC method; this adds retry and timeout information,
36043604
# and friendly error handling.
3605-
rpc = gapic_v1.method_async.wrap_method(
3606-
self._client._transport.list_operations,
3607-
default_timeout=None,
3608-
client_info=DEFAULT_CLIENT_INFO,
3609-
)
3605+
rpc = self.transport._wrapped_methods[self._client._transport.list_operations]
36103606

36113607
# Certain fields should be provided within the metadata header;
36123608
# add these here.
@@ -3659,11 +3655,7 @@ async def get_operation(
36593655

36603656
# Wrap the RPC method; this adds retry and timeout information,
36613657
# and friendly error handling.
3662-
rpc = gapic_v1.method_async.wrap_method(
3663-
self._client._transport.get_operation,
3664-
default_timeout=None,
3665-
client_info=DEFAULT_CLIENT_INFO,
3666-
)
3658+
rpc = self.transport._wrapped_methods[self._client._transport.get_operation]
36673659

36683660
# Certain fields should be provided within the metadata header;
36693661
# add these here.
@@ -3720,11 +3712,7 @@ async def delete_operation(
37203712

37213713
# Wrap the RPC method; this adds retry and timeout information,
37223714
# and friendly error handling.
3723-
rpc = gapic_v1.method_async.wrap_method(
3724-
self._client._transport.delete_operation,
3725-
default_timeout=None,
3726-
client_info=DEFAULT_CLIENT_INFO,
3727-
)
3715+
rpc = self.transport._wrapped_methods[self._client._transport.delete_operation]
37283716

37293717
# Certain fields should be provided within the metadata header;
37303718
# add these here.
@@ -3777,11 +3765,7 @@ async def cancel_operation(
37773765

37783766
# Wrap the RPC method; this adds retry and timeout information,
37793767
# and friendly error handling.
3780-
rpc = gapic_v1.method_async.wrap_method(
3781-
self._client._transport.cancel_operation,
3782-
default_timeout=None,
3783-
client_info=DEFAULT_CLIENT_INFO,
3784-
)
3768+
rpc = self.transport._wrapped_methods[self._client._transport.cancel_operation]
37853769

37863770
# Certain fields should be provided within the metadata header;
37873771
# add these here.

google/cloud/spanner_admin_database_v1/services/database_admin/client.py

+4-20
Original file line numberDiff line numberDiff line change
@@ -4091,11 +4091,7 @@ def list_operations(
40914091

40924092
# Wrap the RPC method; this adds retry and timeout information,
40934093
# and friendly error handling.
4094-
rpc = gapic_v1.method.wrap_method(
4095-
self._transport.list_operations,
4096-
default_timeout=None,
4097-
client_info=DEFAULT_CLIENT_INFO,
4098-
)
4094+
rpc = self._transport._wrapped_methods[self._transport.list_operations]
40994095

41004096
# Certain fields should be provided within the metadata header;
41014097
# add these here.
@@ -4148,11 +4144,7 @@ def get_operation(
41484144

41494145
# Wrap the RPC method; this adds retry and timeout information,
41504146
# and friendly error handling.
4151-
rpc = gapic_v1.method.wrap_method(
4152-
self._transport.get_operation,
4153-
default_timeout=None,
4154-
client_info=DEFAULT_CLIENT_INFO,
4155-
)
4147+
rpc = self._transport._wrapped_methods[self._transport.get_operation]
41564148

41574149
# Certain fields should be provided within the metadata header;
41584150
# add these here.
@@ -4209,11 +4201,7 @@ def delete_operation(
42094201

42104202
# Wrap the RPC method; this adds retry and timeout information,
42114203
# and friendly error handling.
4212-
rpc = gapic_v1.method.wrap_method(
4213-
self._transport.delete_operation,
4214-
default_timeout=None,
4215-
client_info=DEFAULT_CLIENT_INFO,
4216-
)
4204+
rpc = self._transport._wrapped_methods[self._transport.delete_operation]
42174205

42184206
# Certain fields should be provided within the metadata header;
42194207
# add these here.
@@ -4266,11 +4254,7 @@ def cancel_operation(
42664254

42674255
# Wrap the RPC method; this adds retry and timeout information,
42684256
# and friendly error handling.
4269-
rpc = gapic_v1.method.wrap_method(
4270-
self._transport.cancel_operation,
4271-
default_timeout=None,
4272-
client_info=DEFAULT_CLIENT_INFO,
4273-
)
4257+
rpc = self._transport._wrapped_methods[self._transport.cancel_operation]
42744258

42754259
# Certain fields should be provided within the metadata header;
42764260
# add these here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
transport inheritance structure
3+
_______________________________
4+
5+
`DatabaseAdminTransport` is the ABC for all transports.
6+
- public child `DatabaseAdminGrpcTransport` for sync gRPC transport (defined in `grpc.py`).
7+
- public child `DatabaseAdminGrpcAsyncIOTransport` for async gRPC transport (defined in `grpc_asyncio.py`).
8+
- private child `_BaseDatabaseAdminRestTransport` for base REST transport with inner classes `_BaseMETHOD` (defined in `rest_base.py`).
9+
- public child `DatabaseAdminRestTransport` for sync REST transport with inner classes `METHOD` derived from the parent's corresponding `_BaseMETHOD` classes (defined in `rest.py`).

google/cloud/spanner_admin_database_v1/services/database_admin/transports/base.py

+20
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,26 @@ def _prep_wrapped_messages(self, client_info):
458458
default_timeout=3600.0,
459459
client_info=client_info,
460460
),
461+
self.cancel_operation: gapic_v1.method.wrap_method(
462+
self.cancel_operation,
463+
default_timeout=None,
464+
client_info=client_info,
465+
),
466+
self.delete_operation: gapic_v1.method.wrap_method(
467+
self.delete_operation,
468+
default_timeout=None,
469+
client_info=client_info,
470+
),
471+
self.get_operation: gapic_v1.method.wrap_method(
472+
self.get_operation,
473+
default_timeout=None,
474+
client_info=client_info,
475+
),
476+
self.list_operations: gapic_v1.method.wrap_method(
477+
self.list_operations,
478+
default_timeout=None,
479+
client_info=client_info,
480+
),
461481
}
462482

463483
def close(self):

0 commit comments

Comments
 (0)