Compute Engine API v1beta14 (revision 17)



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.AttachDisk
           
 class Compute.Instances.Delete
           
 class Compute.Instances.DeleteAccessConfig
           
 class Compute.Instances.DetachDisk
           
 class Compute.Instances.Get
           
 class Compute.Instances.GetSerialPortOutput
           
 class Compute.Instances.Insert
           
 class Compute.Instances.List
           
 class Compute.Instances.SetMetadata
           
 class Compute.Instances.SetTags
           
 
Constructor Summary
Compute.Instances()
           
 
Method Summary
 Compute.Instances.AddAccessConfig addAccessConfig(String project, String zone, String instance, String networkInterface, AccessConfig content)
          Adds an access config to an instance's network interface.
 Compute.Instances.AttachDisk attachDisk(String project, String zone, String instance, AttachedDisk content)
          Attaches a disk resource to an instance.
 Compute.Instances.Delete delete(String project, String zone, String instance)
          Deletes the specified instance resource.
 Compute.Instances.DeleteAccessConfig deleteAccessConfig(String project, String zone, String instance, String accessConfig, String networkInterface)
          Deletes an access config from an instance's network interface.
 Compute.Instances.DetachDisk detachDisk(String project, String zone, String instance, String deviceName)
          Detaches a disk from an instance.
 Compute.Instances.Get get(String project, String zone, String instance)
          Returns the specified instance resource.
 Compute.Instances.GetSerialPortOutput getSerialPortOutput(String project, String zone, String instance)
          Returns the specified instance's serial port output.
 Compute.Instances.Insert insert(String project, String zone, Instance content)
          Creates an instance resource in the specified project using the data included in the request.
 Compute.Instances.List list(String project, String zone)
          Retrieves the list of instance resources contained within the specified zone.
 Compute.Instances.SetMetadata setMetadata(String project, String zone, String instance, Metadata content)
          Sets metadata for the specified instance to the data included in the request.
 Compute.Instances.SetTags setTags(String project, String zone, String instance, Tags content)
          Sets tags for the specified instance to the data included in the request.
 
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 zone,
                                                         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.
zone - Name of the zone scoping this request.
instance - Instance name.
networkInterface - Network interface name.
content - the AccessConfig
Returns:
the request
Throws:
IOException

attachDisk

public Compute.Instances.AttachDisk attachDisk(String project,
                                               String zone,
                                               String instance,
                                               AttachedDisk content)
                                        throws IOException
Attaches a disk resource to an instance. Create a request for the method "instances.attachDisk". 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.
zone - Name of the zone scoping this request.
instance - Instance name.
content - the AttachedDisk
Returns:
the request
Throws:
IOException

delete

public Compute.Instances.Delete delete(String project,
                                       String zone,
                                       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.
zone - Name of the zone 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 zone,
                                                               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.
zone - Name of the zone scoping this request.
instance - Instance name.
accessConfig - Access config name.
networkInterface - Network interface name.
Returns:
the request
Throws:
IOException

detachDisk

public Compute.Instances.DetachDisk detachDisk(String project,
                                               String zone,
                                               String instance,
                                               String deviceName)
                                        throws IOException
Detaches a disk from an instance. Create a request for the method "instances.detachDisk". 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.
zone - Name of the zone scoping this request.
instance - Instance name.
deviceName - Disk device name to detach.
Returns:
the request
Throws:
IOException

get

public Compute.Instances.Get get(String project,
                                 String zone,
                                 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.
zone - Name of the zone 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 zone,
                                                                 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.
zone - Name of the zone scoping this request.
instance - Name of the instance scoping this request.
Returns:
the request
Throws:
IOException

insert

public Compute.Instances.Insert insert(String project,
                                       String zone,
                                       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.
zone - Name of the zone scoping this request.
content - the Instance
Returns:
the request
Throws:
IOException

list

public Compute.Instances.List list(String project,
                                   String zone)
                            throws IOException
Retrieves the list of instance resources contained within the specified zone. 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.
zone - Name of the zone scoping this request.
Returns:
the request
Throws:
IOException

setMetadata

public Compute.Instances.SetMetadata setMetadata(String project,
                                                 String zone,
                                                 String instance,
                                                 Metadata content)
                                          throws IOException
Sets metadata for the specified instance to the data included in the request. Create a request for the method "instances.setMetadata". 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.
zone - Name of the zone scoping this request.
instance - Name of the instance scoping this request.
content - the Metadata
Returns:
the request
Throws:
IOException

setTags

public Compute.Instances.SetTags setTags(String project,
                                         String zone,
                                         String instance,
                                         Tags content)
                                  throws IOException
Sets tags for the specified instance to the data included in the request. Create a request for the method "instances.setTags". 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.
zone - Name of the zone scoping this request.
instance - Name of the instance scoping this request.
content - the Tags
Returns:
the request
Throws:
IOException