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

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







Compute.MachineImages (Compute Engine API beta-rev20220726-2.0.0)












com.google.api.services.compute

Class Compute.MachineImages

  • Enclosing class:
    Compute


    public class Compute.MachineImages
    extends Object
    The "machineImages" collection of methods.
    • Constructor Detail

      • MachineImages

        public MachineImages()
    • Method Detail

      • delete

        public Compute.MachineImages.Delete delete(String project,
                                                   String machineImage)
                                            throws IOException
        Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. Create a request for the method "machineImages.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.
        machineImage - The name of the machine image to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.MachineImages.Get get(String project,
                                             String machineImage)
                                      throws IOException
        Returns the specified machine image. Gets a list of available machine images by making a list() request. Create a request for the method "machineImages.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.
        machineImage - The name of the machine image.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.MachineImages.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 "machineImages.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.MachineImages.Insert insert(String project,
                                                   MachineImage content)
                                            throws IOException
        Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance. Create a request for the method "machineImages.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 MachineImage
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.MachineImages.List list(String project)
                                        throws IOException
        Retrieves a list of machine images that are contained within the specified project. Create a request for the method "machineImages.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–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy