Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ def set_iam_policy(
elif not request:
request = iam_policy.SetIamPolicyRequest(resource=resource,)

if resource is not None:
request.resource = resource

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
rpc = self._transport._wrapped_methods[self._transport.set_iam_policy]
Expand Down Expand Up @@ -606,6 +609,9 @@ def get_iam_policy(
elif not request:
request = iam_policy.GetIamPolicyRequest(resource=resource,)

if resource is not None:
request.resource = resource

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
rpc = self._transport._wrapped_methods[self._transport.get_iam_policy]
Expand Down Expand Up @@ -694,6 +700,12 @@ def test_iam_permissions(
resource=resource, permissions=permissions,
)

if resource is not None:
request.resource = resource

if permissions:
request.permissions.extend(permissions)

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
rpc = self._transport._wrapped_methods[self._transport.test_iam_permissions]
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-containeranalysis.git",
"sha": "e5bb6c9f095a4db273a9546ea02ed19c2846b738"
"sha": "223efbea7e56037ca79ccf36344bc7cda20ce41d"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "20712b8fe95001b312f62c6c5f33e3e3ec92cfaf",
"internalRef": "354996675"
"sha": "5e3dacee19405529b841b53797df799c2383536c",
"internalRef": "355923884"
}
},
{
Expand Down