@BetaApi
  public final ListInstanceTemplatesPagedResponse listInstanceTemplates(String project) {
    ListInstanceTemplatesHttpRequest request =
        ListInstanceTemplatesHttpRequest.newBuilder().setProject(project).build();
    return listInstanceTemplates(request);
  }
@ BetaApi public final ListInstanceTemplatesPagedResponse listInstanceTemplates ( String project ) { ListInstanceTemplatesHttpRequest request = ListInstanceTemplatesHttpRequest . newBuilder ( ) . setProject ( project ) . build ( ) ; return listInstanceTemplates ( request ) ; }
Retrieves a list of instance templates that are contained within the specified project.

<p>Sample code:

<pre><code>
try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
for (InstanceTemplate element : instanceTemplateClient.listInstanceTemplates(project.toString()).iterateAll()) {
// doThingsWith(element);
}
}
</code></pre>

@param project Project ID for this request.
@throws com.google.api.gax.rpc.ApiException if the remote call fails