public class Compute.Instances
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Compute.Instances.AddAccessConfig |
class |
Compute.Instances.AggregatedList |
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.Reset |
class |
Compute.Instances.SetDiskAutoDelete |
class |
Compute.Instances.SetMetadata |
class |
Compute.Instances.SetScheduling |
class |
Compute.Instances.SetTags |
class |
Compute.Instances.Start |
class |
Compute.Instances.Stop |
Constructor and Description |
---|
Compute.Instances() |
Modifier and Type | Method and Description |
---|---|
Compute.Instances.AddAccessConfig |
addAccessConfig(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String networkInterface,
AccessConfig content)
Adds an access config to an instance's network interface.
|
Compute.Instances.AggregatedList |
aggregatedList(java.lang.String project)
Create a request for the method "instances.aggregatedList".
|
Compute.Instances.AttachDisk |
attachDisk(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
AttachedDisk content)
Attaches a Disk resource to an instance.
|
Compute.Instances.Delete |
delete(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Deletes the specified Instance resource.
|
Compute.Instances.DeleteAccessConfig |
deleteAccessConfig(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String accessConfig,
java.lang.String networkInterface)
Deletes an access config from an instance's network interface.
|
Compute.Instances.DetachDisk |
detachDisk(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String deviceName)
Detaches a disk from an instance.
|
Compute.Instances.Get |
get(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Returns the specified instance resource.
|
Compute.Instances.GetSerialPortOutput |
getSerialPortOutput(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Returns the specified instance's serial port output.
|
Compute.Instances.Insert |
insert(java.lang.String project,
java.lang.String zone,
Instance content)
Creates an instance resource in the specified project using the data included in the request.
|
Compute.Instances.List |
list(java.lang.String project,
java.lang.String zone)
Retrieves the list of instance resources contained within the specified zone.
|
Compute.Instances.Reset |
reset(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Performs a hard reset on the instance.
|
Compute.Instances.SetDiskAutoDelete |
setDiskAutoDelete(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.Boolean autoDelete,
java.lang.String deviceName)
Sets the auto-delete flag for a disk attached to an instance.
|
Compute.Instances.SetMetadata |
setMetadata(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
Metadata content)
Sets metadata for the specified instance to the data included in the request.
|
Compute.Instances.SetScheduling |
setScheduling(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
Scheduling content)
Sets an instance's scheduling options.
|
Compute.Instances.SetTags |
setTags(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
Tags content)
Sets tags for the specified instance to the data included in the request.
|
Compute.Instances.Start |
start(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
This method starts an instance that was stopped using the using the instances().stop method.
|
Compute.Instances.Stop |
stop(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
This method stops a running instance, shutting it down cleanly, and allows you to restart the
instance at a later time.
|
public Compute.Instances.AddAccessConfig addAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, AccessConfig content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- The instance name for this request.networkInterface
- The name of the network interface to add to this instance.content
- the AccessConfig
java.io.IOException
public Compute.Instances.AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.java.io.IOException
public Compute.Instances.AttachDisk attachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, AttachedDisk content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Instance name.content
- the AttachedDisk
java.io.IOException
public Compute.Instances.Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Name of the instance resource to delete.java.io.IOException
public Compute.Instances.DeleteAccessConfig deleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- The instance name for this request.accessConfig
- The name of the access config to delete.networkInterface
- The name of the network interface.java.io.IOException
public Compute.Instances.DetachDisk detachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Instance name.deviceName
- Disk device name to detach.java.io.IOException
public Compute.Instances.Get get(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the The name of the zone for this request..instance
- Name of the instance resource to return.java.io.IOException
public Compute.Instances.GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Name of the instance scoping this request.java.io.IOException
public Compute.Instances.Insert insert(java.lang.String project, java.lang.String zone, Instance content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.content
- the Instance
java.io.IOException
public Compute.Instances.List list(java.lang.String project, java.lang.String zone) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.java.io.IOException
public Compute.Instances.Reset reset(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Name of the instance scoping this request.java.io.IOException
public Compute.Instances.SetDiskAutoDelete setDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- The instance name.autoDelete
- Whether to auto-delete the disk when the instance is deleted.deviceName
- The device name of the disk to modify.java.io.IOException
public Compute.Instances.SetMetadata setMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, Metadata content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Name of the instance scoping this request.content
- the Metadata
java.io.IOException
public Compute.Instances.SetScheduling setScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, Scheduling content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Instance name.content
- the Scheduling
java.io.IOException
public Compute.Instances.SetTags setTags(java.lang.String project, java.lang.String zone, java.lang.String instance, Tags content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Name of the instance scoping this request.content
- the Tags
java.io.IOException
public Compute.Instances.Start start(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Name of the instance resource to start.java.io.IOException
public Compute.Instances.Stop stop(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.instance
- Name of the instance resource to stop.java.io.IOException