public final Policy setIamPolicy ( String resource , Policy policy ) { SetIamPolicyRequest request = SetIamPolicyRequest . newBuilder ( ) . setResource ( resource ) . setPolicy ( policy ) . build ( ) ; return setIamPolicy ( request ) ; }
Sets the access control policy on an instance resource . Replaces any existing policy .