Compute Engine API v1beta13 (revision 24)



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

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

public class Compute.Instances
extends Object

The "instances" collection of methods.


Nested Class Summary
 class Compute.Instances.AddAccessConfig
           
 class Compute.Instances.Delete
           
 class Compute.Instances.DeleteAccessConfig
           
 class Compute.Instances.Get
           
 class Compute.Instances.GetSerialPortOutput
           
 class Compute.Instances.Insert
           
 class Compute.Instances.List
           
 
Constructor Summary
Compute.Instances()
           
 
Method Summary
 Compute.Instances.AddAccessConfig addAccessConfig(String project, String instance, String networkInterface, AccessConfig content)
          Adds an access config to an instance's network interface.
 Compute.Instances.Delete delete(String project, String instance)
          Deletes the specified instance resource.
 Compute.Instances.DeleteAccessConfig deleteAccessConfig(String project, String instance, String accessConfig, String networkInterface)
          Deletes an access config from an instance's network interface.
 Compute.Instances.Get get(String project, String instance)
          Returns the specified instance resource.
 Compute.Instances.GetSerialPortOutput getSerialPortOutput(String project, String instance)
          Returns the specified instance's serial port output.
 Compute.Instances.Insert insert(String project, Instance content)
          Creates an instance resource in the specified project using the data included in the request.
 Compute.Instances.List list(String project)
          Retrieves the list of instance resources contained within the specified project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compute.Instances

public Compute.Instances()
Method Detail

addAccessConfig

public Compute.Instances.AddAccessConfig addAccessConfig(String project,
                                                         String instance,
                                                         String networkInterface,
                                                         AccessConfig content)
                                                  throws IOException
Adds an access config to an instance's network interface. Create a request for the method "instances.addAccessConfig". 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 - Project name.
instance - Instance name.
networkInterface - Network interface name.
content - the AccessConfig
Returns:
the request
Throws:
IOException

delete

public Compute.Instances.Delete delete(String project,
                                       String instance)
                                throws IOException
Deletes the specified instance resource. Create a request for the method "instances.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.
instance - Name of the instance resource to delete.
Returns:
the request
Throws:
IOException

deleteAccessConfig

public Compute.Instances.DeleteAccessConfig deleteAccessConfig(String project,
                                                               String instance,
                                                               String accessConfig,
                                                               String networkInterface)
                                                        throws IOException
Deletes an access config from an instance's network interface. Create a request for the method "instances.deleteAccessConfig". 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 - Project name.
instance - Instance name.
accessConfig - Access config name.
networkInterface - Network interface name.
Returns:
the request
Throws:
IOException

get

public Compute.Instances.Get get(String project,
                                 String instance)
                          throws IOException
Returns the specified instance resource. Create a request for the method "instances.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.
instance - Name of the instance resource to return.
Returns:
the request
Throws:
IOException

getSerialPortOutput

public Compute.Instances.GetSerialPortOutput getSerialPortOutput(String project,
                                                                 String instance)
                                                          throws IOException
Returns the specified instance's serial port output. Create a request for the method "instances.getSerialPortOutput". 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.
instance - Name of the instance scoping this request.
Returns:
the request
Throws:
IOException

insert

public Compute.Instances.Insert insert(String project,
                                       Instance content)
                                throws IOException
Creates an instance resource in the specified project using the data included in the request. Create a request for the method "instances.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 Instance
Returns:
the request
Throws:
IOException

list

public Compute.Instances.List list(String project)
                            throws IOException
Retrieves the list of instance resources contained within the specified project. Create a request for the method "instances.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