@BetaApi
  public final Policy getIamPolicyInstanceTemplate(
      ProjectGlobalInstanceTemplateResourceName resource) {

    GetIamPolicyInstanceTemplateHttpRequest request =
        GetIamPolicyInstanceTemplateHttpRequest.newBuilder()
            .setResource(resource == null ? null : resource.toString())
            .build();
    return getIamPolicyInstanceTemplate(request);
  }
@ BetaApi public final Policy getIamPolicyInstanceTemplate ( ProjectGlobalInstanceTemplateResourceName resource ) { GetIamPolicyInstanceTemplateHttpRequest request = GetIamPolicyInstanceTemplateHttpRequest . newBuilder ( ) . setResource ( resource == null ? null : resource . toString ( ) ) . build ( ) ; return getIamPolicyInstanceTemplate ( request ) ; }
Gets the access control policy for a resource. May be empty if no such policy or resource
exists.

<p>Sample code:

<pre><code>
try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) {
ProjectGlobalInstanceTemplateResourceName resource = ProjectGlobalInstanceTemplateResourceName.of("[PROJECT]", "[RESOURCE]");
Policy response = instanceTemplateClient.getIamPolicyInstanceTemplate(resource);
}
</code></pre>

@param resource Name or id of the resource for this request.
@throws com.google.api.gax.rpc.ApiException if the remote call fails