Updates the IAM policy for this instance and returns the resulting policy. It is highly
recommended to first get the current policy and base the updated policy on the returned policy.
See Policy.Builder#setEtag(String) for information on the recommended read-modify-write
cycle.
Parameter
Name
Description
policy
com.google.cloud.Policy
Returns
Type
Description
com.google.cloud.Policy
testIAMPermissions(Iterable<String> permissions)
public Iterable<String> testIAMPermissions(Iterable<String> permissions)
Tests for the given permissions on this instance for the caller.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]