public final Policy getIamPolicy ( String resource ) { GetIamPolicyRequest request = GetIamPolicyRequest . newBuilder ( ) . setResource ( resource ) . build ( ) ; return getIamPolicy ( request ) ; }
Gets the access control policy for an instance resource . Returns an empty policy if an instance exists but does not have a policy set .