All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.Compute.InstanceTemplates.html Maven / Gradle / Ivy

There is a newer version: v1-rev20250107-2.0.0
Show newest version






Compute.InstanceTemplates (Compute Engine API alpha-rev20200526-1.30.9)












com.google.api.services.compute

Class Compute.InstanceTemplates

  • Enclosing class:
    Compute


    public class Compute.InstanceTemplates
    extends Object
    The "instanceTemplates" collection of methods.
    • Constructor Detail

      • InstanceTemplates

        public InstanceTemplates()
    • Method Detail

      • delete

        public Compute.InstanceTemplates.Delete delete(String project,
                                                       String instanceTemplate)
                                                throws IOException
        Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group. Create a request for the method "instanceTemplates.delete". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        instanceTemplate - The name of the instance template to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.InstanceTemplates.Get get(String project,
                                                 String instanceTemplate)
                                          throws IOException
        Returns the specified instance template. Gets a list of available instance templates by making a list() request. Create a request for the method "instanceTemplates.get". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        instanceTemplate - The name of the instance template.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.InstanceTemplates.GetIamPolicy getIamPolicy(String project,
                                                                   String resource)
                                                            throws IOException
        Gets the access control policy for a resource. May be empty if no such policy or resource exists. Create a request for the method "instanceTemplates.getIamPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        resource - Name or id of the resource for this request.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.InstanceTemplates.Insert insert(String project,
                                                       InstanceTemplate content)
                                                throws IOException
        Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template. Create a request for the method "instanceTemplates.insert". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        content - the InstanceTemplate
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.InstanceTemplates.List list(String project)
                                            throws IOException
        Retrieves a list of instance templates that are contained within the specified project. Create a request for the method "instanceTemplates.list". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy