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 |
Constructor and Description |
---|
Compute.Instances() |
Modifier and Type | Method and Description |
---|---|
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.AggregatedList |
aggregatedList(String project)
Create a request for the method "instances.aggregatedList".
|
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.Reset |
reset(String project,
String zone,
String instance)
Performs a hard reset on the instance.
|
Compute.Instances.SetDiskAutoDelete |
setDiskAutoDelete(String project,
String zone,
String instance,
Boolean autoDelete,
String deviceName)
Sets the auto-delete flag for a disk attached to an instance
Create a request for the method "instances.setDiskAutoDelete".
|
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.SetScheduling |
setScheduling(String project,
String zone,
String instance,
Scheduling content)
Sets an instance's scheduling options.
|
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.
|
public Compute.Instances.AddAccessConfig addAccessConfig(String project, String zone, String instance, String networkInterface, AccessConfig content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project name.zone
- Name of the zone scoping this request.instance
- Instance name.networkInterface
- Network interface name.content
- the AccessConfig
IOException
public Compute.Instances.AggregatedList aggregatedList(String project) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Name of the project scoping this request.IOException
public Compute.Instances.AttachDisk attachDisk(String project, String zone, String instance, AttachedDisk content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project name.zone
- Name of the zone scoping this request.instance
- Instance name.content
- the AttachedDisk
IOException
public Compute.Instances.Delete delete(String project, String zone, String instance) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Name of the project scoping this request.zone
- Name of the zone scoping this request.instance
- Name of the instance resource to delete.IOException
public Compute.Instances.DeleteAccessConfig deleteAccessConfig(String project, String zone, String instance, String accessConfig, String networkInterface) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project name.zone
- Name of the zone scoping this request.instance
- Instance name.accessConfig
- Access config name.networkInterface
- Network interface name.IOException
public Compute.Instances.DetachDisk detachDisk(String project, String zone, String instance, String deviceName) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project name.zone
- Name of the zone scoping this request.instance
- Instance name.deviceName
- Disk device name to detach.IOException
public Compute.Instances.Get get(String project, String zone, String instance) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Name of the project scoping this request.zone
- Name of the zone scoping this request.instance
- Name of the instance resource to return.IOException
public Compute.Instances.GetSerialPortOutput getSerialPortOutput(String project, String zone, String instance) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Name of the project scoping this request.zone
- Name of the zone scoping this request.instance
- Name of the instance scoping this request.IOException
public Compute.Instances.Insert insert(String project, String zone, Instance content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Name of the project scoping this request.zone
- Name of the zone scoping this request.content
- the Instance
IOException
public Compute.Instances.List list(String project, String zone) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Name of the project scoping this request.zone
- Name of the zone scoping this request.IOException
public Compute.Instances.Reset reset(String project, String zone, String instance) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Name of the project scoping this request.zone
- Name of the zone scoping this request.instance
- Name of the instance scoping this request.IOException
public Compute.Instances.SetDiskAutoDelete setDiskAutoDelete(String project, String zone, String instance, Boolean autoDelete, String deviceName) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project name.zone
- Name of the zone scoping this request.instance
- Instance name.autoDelete
- Whether to auto-delete the disk when the instance is deleted.deviceName
- Disk device name to modify.IOException
public Compute.Instances.SetMetadata setMetadata(String project, String zone, String instance, Metadata content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.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
IOException
public Compute.Instances.SetScheduling setScheduling(String project, String zone, String instance, Scheduling content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project name.zone
- Name of the zone scoping this request.instance
- Instance name.content
- the Scheduling
IOException
public Compute.Instances.SetTags setTags(String project, String zone, String instance, Tags content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.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
IOException