Compute Engine API v1beta14 (revision 17)



com.google.api.services.compute
Class Compute.Images

java.lang.Object
  extended by com.google.api.services.compute.Compute.Images
Enclosing class:
Compute

public class Compute.Images
extends Object

The "images" collection of methods.


Nested Class Summary
 class Compute.Images.Delete
           
 class Compute.Images.Deprecate
           
 class Compute.Images.Get
           
 class Compute.Images.Insert
           
 class Compute.Images.List
           
 
Constructor Summary
Compute.Images()
           
 
Method Summary
 Compute.Images.Delete delete(String project, String image)
          Deletes the specified image resource.
 Compute.Images.Deprecate deprecate(String project, String image, DeprecationStatus content)
          Sets the deprecation status of an image.
 Compute.Images.Get get(String project, String image)
          Returns the specified image resource.
 Compute.Images.Insert insert(String project, Image content)
          Creates an image resource in the specified project using the data included in the request.
 Compute.Images.List list(String project)
          Retrieves the list of image resources available to the specified project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compute.Images

public Compute.Images()
Method Detail

delete

public Compute.Images.Delete delete(String project,
                                    String image)
                             throws IOException
Deletes the specified image resource. Create a request for the method "images.delete". This request holds the parameters needed by the the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
project - Name of the project scoping this request.
image - Name of the image resource to delete.
Returns:
the request
Throws:
IOException

deprecate

public Compute.Images.Deprecate deprecate(String project,
                                          String image,
                                          DeprecationStatus content)
                                   throws IOException
Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead. Create a request for the method "images.deprecate". This request holds the parameters needed by the the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
project - Name of the project scoping this request.
image - Image name.
content - the DeprecationStatus
Returns:
the request
Throws:
IOException

get

public Compute.Images.Get get(String project,
                              String image)
                       throws IOException
Returns the specified image resource. Create a request for the method "images.get". This request holds the parameters needed by the the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
project - Name of the project scoping this request.
image - Name of the image resource to return.
Returns:
the request
Throws:
IOException

insert

public Compute.Images.Insert insert(String project,
                                    Image content)
                             throws IOException
Creates an image resource in the specified project using the data included in the request. Create a request for the method "images.insert". This request holds the parameters needed by the the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
project - Name of the project scoping this request.
content - the Image
Returns:
the request
Throws:
IOException

list

public Compute.Images.List list(String project)
                         throws IOException
Retrieves the list of image resources available to the specified project. Create a request for the method "images.list". This request holds the parameters needed by the the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
project - Name of the project scoping this request.
Returns:
the request
Throws:
IOException