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.SetMachineType |
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)
Retrieves aggregated list of instances.
|
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 instances 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.SetMachineType |
setMachineType(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
InstancesSetMachineTypeRequest content)
Changes the machine type for a stopped instance to the machine type specified in the request.
|
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)
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)
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 AccessConfigjava.io.IOExceptionpublic 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.IOExceptionpublic 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 - The instance name for this request.content - the AttachedDiskjava.io.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic 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 zone for this request.instance - Name of the instance resource to return.java.io.IOExceptionpublic 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.IOExceptionpublic 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 Instancejava.io.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic Compute.Instances.SetMachineType setMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, InstancesSetMachineTypeRequest 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 InstancesSetMachineTypeRequestjava.io.IOExceptionpublic 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 Metadatajava.io.IOExceptionpublic 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 Schedulingjava.io.IOExceptionpublic 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 Tagsjava.io.IOExceptionpublic 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.IOExceptionpublic 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