Skip to content

Commit b5236b4

Browse files
feat: Add client library support for AssetService v1 BatchGetEffectiveIamPolicies API (#474)
* feat: Add client library support for AssetService v1 BatchGetEffectiveIamPolicies API Committer: haochunzhang@ PiperOrigin-RevId: 468010360 Source-Link: googleapis/googleapis@4bda299 Source-Link: googleapis/googleapis-gen@8ed0406 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGVkMDQwNjE0ZDA0NzQzZjE2Y2Y0ZTQ4NDRiNzE2ZmVkOTk4Zjk0YyJ9 * 🦉 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>
1 parent 79a193d commit b5236b4

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

packages/google-cloud-asset/google/cloud/asset_v1/services/asset_service/async_client.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,16 @@ async def sample_batch_get_effective_iam_policies():
24332433
# and friendly error handling.
24342434
rpc = gapic_v1.method_async.wrap_method(
24352435
self._client._transport.batch_get_effective_iam_policies,
2436-
default_timeout=None,
2436+
default_retry=retries.Retry(
2437+
initial=0.1,
2438+
maximum=60.0,
2439+
multiplier=1.3,
2440+
predicate=retries.if_exception_type(
2441+
core_exceptions.ServiceUnavailable,
2442+
),
2443+
deadline=300.0,
2444+
),
2445+
default_timeout=300.0,
24372446
client_info=DEFAULT_CLIENT_INFO,
24382447
)
24392448

packages/google-cloud-asset/google/cloud/asset_v1/services/asset_service/transports/base.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,16 @@ def _prep_wrapped_messages(self, client_info):
313313
),
314314
self.batch_get_effective_iam_policies: gapic_v1.method.wrap_method(
315315
self.batch_get_effective_iam_policies,
316-
default_timeout=None,
316+
default_retry=retries.Retry(
317+
initial=0.1,
318+
maximum=60.0,
319+
multiplier=1.3,
320+
predicate=retries.if_exception_type(
321+
core_exceptions.ServiceUnavailable,
322+
),
323+
deadline=300.0,
324+
),
325+
default_timeout=300.0,
317326
client_info=client_info,
318327
),
319328
}

0 commit comments

Comments
 (0)