public class HttpComputeRpc extends Object implements ComputeRpc
ComputeRpc.Option| Constructor and Description |
|---|
HttpComputeRpc(ComputeOptions options) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.services.compute.model.Operation |
addAccessConfig(String zone,
String instance,
String networkInterface,
com.google.api.services.compute.model.AccessConfig accessConfig,
Map<ComputeRpc.Option,?> options)
Adds an access configuration to an instance's network interface.
|
com.google.api.services.compute.model.Operation |
attachDisk(String zone,
String instance,
com.google.api.services.compute.model.AttachedDisk attachedDisk,
Map<ComputeRpc.Option,?> options)
Attaches a disk to an instance.
|
com.google.api.services.compute.model.Operation |
createDisk(String zone,
com.google.api.services.compute.model.Disk disk,
Map<ComputeRpc.Option,?> options)
Creates a new disk.
|
com.google.api.services.compute.model.Operation |
createGlobalAddress(com.google.api.services.compute.model.Address address,
Map<ComputeRpc.Option,?> options)
Creates a new global address.
|
com.google.api.services.compute.model.Operation |
createImage(com.google.api.services.compute.model.Image image,
Map<ComputeRpc.Option,?> options)
Creates a new image.
|
com.google.api.services.compute.model.Operation |
createInstance(String zone,
com.google.api.services.compute.model.Instance instance,
Map<ComputeRpc.Option,?> options)
Creates a new instance.
|
com.google.api.services.compute.model.Operation |
createNetwork(com.google.api.services.compute.model.Network network,
Map<ComputeRpc.Option,?> options)
Creates a new network.
|
com.google.api.services.compute.model.Operation |
createRegionAddress(String region,
com.google.api.services.compute.model.Address address,
Map<ComputeRpc.Option,?> options)
Creates a new region address.
|
com.google.api.services.compute.model.Operation |
createSnapshot(String zone,
String disk,
String snapshot,
String description,
Map<ComputeRpc.Option,?> options)
Creates a snapshot for the specified disk.
|
com.google.api.services.compute.model.Operation |
createSubnetwork(String region,
com.google.api.services.compute.model.Subnetwork subnetwork,
Map<ComputeRpc.Option,?> options) |
com.google.api.services.compute.model.Operation |
deleteAccessConfig(String zone,
String instance,
String networkInterface,
String accessConfig,
Map<ComputeRpc.Option,?> options)
Deletes an access configuration from an instance's network interface.
|
com.google.api.services.compute.model.Operation |
deleteDisk(String zone,
String disk,
Map<ComputeRpc.Option,?> options)
Deletes the requested disk.
|
com.google.api.services.compute.model.Operation |
deleteGlobalAddress(String address,
Map<ComputeRpc.Option,?> options)
Deletes the requested global address.
|
boolean |
deleteGlobalOperation(String operation)
Deletes the requested global operation.
|
com.google.api.services.compute.model.Operation |
deleteImage(String project,
String image,
Map<ComputeRpc.Option,?> options)
Deletes the requested image.
|
com.google.api.services.compute.model.Operation |
deleteInstance(String zone,
String instance,
Map<ComputeRpc.Option,?> options)
Deletes the requested instance.
|
com.google.api.services.compute.model.Operation |
deleteNetwork(String network,
Map<ComputeRpc.Option,?> options)
Deletes the requested network.
|
com.google.api.services.compute.model.Operation |
deleteRegionAddress(String region,
String address,
Map<ComputeRpc.Option,?> options)
Deletes the requested region address.
|
boolean |
deleteRegionOperation(String region,
String operation)
Deletes the requested region operation.
|
com.google.api.services.compute.model.Operation |
deleteSnapshot(String snapshot,
Map<ComputeRpc.Option,?> options)
Deletes the requested snapshot.
|
com.google.api.services.compute.model.Operation |
deleteSubnetwork(String region,
String subnetwork,
Map<ComputeRpc.Option,?> options)
Deletes the requested subnetwork.
|
boolean |
deleteZoneOperation(String zone,
String operation)
Deletes the requested zone operation.
|
com.google.api.services.compute.model.Operation |
deprecateImage(String project,
String image,
com.google.api.services.compute.model.DeprecationStatus deprecationStatus,
Map<ComputeRpc.Option,?> options)
Deprecates the requested image.
|
com.google.api.services.compute.model.Operation |
detachDisk(String zone,
String instance,
String deviceName,
Map<ComputeRpc.Option,?> options)
Detaches a disk from an instance.
|
com.google.api.services.compute.model.Disk |
getDisk(String zone,
String disk,
Map<ComputeRpc.Option,?> options)
Returns the requested disk or
null if not found. |
com.google.api.services.compute.model.DiskType |
getDiskType(String zone,
String diskType,
Map<ComputeRpc.Option,?> options)
Returns the requested disk type or
null if not found. |
com.google.api.services.compute.model.Address |
getGlobalAddress(String address,
Map<ComputeRpc.Option,?> options)
Returns the requested global address or
null if not found. |
com.google.api.services.compute.model.Operation |
getGlobalOperation(String operation,
Map<ComputeRpc.Option,?> options)
Returns the requested global operation or
null if not found. |
com.google.api.services.compute.model.Image |
getImage(String project,
String image,
Map<ComputeRpc.Option,?> options)
Returns the requested image or
null if not found. |
com.google.api.services.compute.model.Instance |
getInstance(String zone,
String instance,
Map<ComputeRpc.Option,?> options)
Returns the requested instance or
null if not found. |
com.google.api.services.compute.model.License |
getLicense(String project,
String license,
Map<ComputeRpc.Option,?> options)
Returns the requested license or
null if not found. |
com.google.api.services.compute.model.MachineType |
getMachineType(String zone,
String machineType,
Map<ComputeRpc.Option,?> options)
Returns the requested machine type or
null if not found. |
com.google.api.services.compute.model.Network |
getNetwork(String network,
Map<ComputeRpc.Option,?> options)
Returns the requested network or
null if not found. |
com.google.api.services.compute.model.Region |
getRegion(String region,
Map<ComputeRpc.Option,?> options)
Returns the requested region or
null if not found. |
com.google.api.services.compute.model.Address |
getRegionAddress(String region,
String address,
Map<ComputeRpc.Option,?> options)
Returns the requested region address or
null if not found. |
com.google.api.services.compute.model.Operation |
getRegionOperation(String region,
String operation,
Map<ComputeRpc.Option,?> options)
Returns the requested region operation or
null if not found. |
String |
getSerialPortOutput(String zone,
String instance,
Integer port,
Map<ComputeRpc.Option,?> options)
Returns the serial port output for the provided instance and port number.
|
com.google.api.services.compute.model.Snapshot |
getSnapshot(String snapshot,
Map<ComputeRpc.Option,?> options)
Returns the requested snapshot or
null if not found. |
com.google.api.services.compute.model.Subnetwork |
getSubnetwork(String region,
String subnetwork,
Map<ComputeRpc.Option,?> options)
Returns the requested subnetwork or
null if not found. |
com.google.api.services.compute.model.Zone |
getZone(String zone,
Map<ComputeRpc.Option,?> options)
Returns the requested zone or
null if not found. |
com.google.api.services.compute.model.Operation |
getZoneOperation(String zone,
String operation,
Map<ComputeRpc.Option,?> options)
Returns the requested zone operation or
null if not found. |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> |
listAddresses(Map<ComputeRpc.Option,?> options)
Lists all addresses.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> |
listDisks(Map<ComputeRpc.Option,?> options)
Lists disks for all zones.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> |
listDisks(String zone,
Map<ComputeRpc.Option,?> options)
Lists the disks for the provided zone.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> |
listDiskTypes(Map<ComputeRpc.Option,?> options)
Lists disk types.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> |
listDiskTypes(String zone,
Map<ComputeRpc.Option,?> options)
Lists the disk types in the provided zone.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> |
listGlobalAddresses(Map<ComputeRpc.Option,?> options)
Lists the global addresses.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> |
listGlobalOperations(Map<ComputeRpc.Option,?> options)
Lists the global operations.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Image>> |
listImages(String project,
Map<ComputeRpc.Option,?> options)
Lists images in the provided project that are available to the current user.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> |
listInstances(Map<ComputeRpc.Option,?> options)
Lists instances.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> |
listInstances(String zone,
Map<ComputeRpc.Option,?> options)
Lists instances for the provided zone.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> |
listMachineTypes(Map<ComputeRpc.Option,?> options)
Lists machine types.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> |
listMachineTypes(String zone,
Map<ComputeRpc.Option,?> options)
Lists the machine types in the provided zone.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Network>> |
listNetworks(Map<ComputeRpc.Option,?> options)
Lists networks.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> |
listRegionAddresses(String region,
Map<ComputeRpc.Option,?> options)
Lists the regions addresses for the provided region.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> |
listRegionOperations(String region,
Map<ComputeRpc.Option,?> options)
Lists the region operations for the provided region.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Region>> |
listRegions(Map<ComputeRpc.Option,?> options)
Lists the regions.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Snapshot>> |
listSnapshots(Map<ComputeRpc.Option,?> options)
Lists snapshots.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> |
listSubnetworks(Map<ComputeRpc.Option,?> options)
Lists subnetworks.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> |
listSubnetworks(String region,
Map<ComputeRpc.Option,?> options)
Lists subnetworks for the provided region.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> |
listZoneOperations(String zone,
Map<ComputeRpc.Option,?> options)
Lists the zone operations for the provided zone.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Zone>> |
listZones(Map<ComputeRpc.Option,?> options)
Lists the zones.
|
com.google.api.services.compute.model.Operation |
reset(String zone,
String instance,
Map<ComputeRpc.Option,?> options)
Resets the provided instance.
|
com.google.api.services.compute.model.Operation |
resizeDisk(String zone,
String disk,
long sizeGb,
Map<ComputeRpc.Option,?> options)
Resizes the disk to the requested size.
|
com.google.api.services.compute.model.Operation |
setDiskAutoDelete(String zone,
String instance,
String deviceName,
boolean autoDelete,
Map<ComputeRpc.Option,?> options)
Sets the auto-delete flag for a disk attached to the provided instance.
|
com.google.api.services.compute.model.Operation |
setMachineType(String zone,
String instance,
String machineTypeUrl,
Map<ComputeRpc.Option,?> options)
Sets the machine type for the provided instance.
|
com.google.api.services.compute.model.Operation |
setMetadata(String zone,
String instance,
com.google.api.services.compute.model.Metadata metadata,
Map<ComputeRpc.Option,?> options)
Sets the metadata for the provided instance.
|
com.google.api.services.compute.model.Operation |
setScheduling(String zone,
String instance,
com.google.api.services.compute.model.Scheduling scheduling,
Map<ComputeRpc.Option,?> options)
Sets the scheduling options for the provided instance.
|
com.google.api.services.compute.model.Operation |
setTags(String zone,
String instance,
com.google.api.services.compute.model.Tags tags,
Map<ComputeRpc.Option,?> options)
Sets the tags for the provided instance.
|
com.google.api.services.compute.model.Operation |
start(String zone,
String instance,
Map<ComputeRpc.Option,?> options)
Starts the provided instance.
|
com.google.api.services.compute.model.Operation |
stop(String zone,
String instance,
Map<ComputeRpc.Option,?> options)
Stops the provided instance.
|
public HttpComputeRpc(ComputeOptions options)
public com.google.api.services.compute.model.DiskType getDiskType(String zone, String diskType, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getDiskType in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> listDiskTypes(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpclistDiskTypes in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> listDiskTypes(Map<ComputeRpc.Option,?> options)
ComputeRpclistDiskTypes in interface ComputeRpcpublic com.google.api.services.compute.model.MachineType getMachineType(String zone, String machineType, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getMachineType in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> listMachineTypes(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpclistMachineTypes in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> listMachineTypes(Map<ComputeRpc.Option,?> options)
ComputeRpclistMachineTypes in interface ComputeRpcpublic com.google.api.services.compute.model.Region getRegion(String region, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getRegion in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Region>> listRegions(Map<ComputeRpc.Option,?> options)
ComputeRpclistRegions in interface ComputeRpcpublic com.google.api.services.compute.model.Zone getZone(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getZone in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Zone>> listZones(Map<ComputeRpc.Option,?> options)
ComputeRpclistZones in interface ComputeRpcpublic com.google.api.services.compute.model.License getLicense(String project, String license, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getLicense in interface ComputeRpcpublic com.google.api.services.compute.model.Operation getGlobalOperation(String operation, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getGlobalOperation in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listGlobalOperations(Map<ComputeRpc.Option,?> options)
ComputeRpclistGlobalOperations in interface ComputeRpcpublic boolean deleteGlobalOperation(String operation)
ComputeRpcdeleteGlobalOperation in interface ComputeRpctrue if operation was deleted, false if it was not foundpublic com.google.api.services.compute.model.Operation getRegionOperation(String region, String operation, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getRegionOperation in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listRegionOperations(String region, Map<ComputeRpc.Option,?> options)
ComputeRpclistRegionOperations in interface ComputeRpcpublic boolean deleteRegionOperation(String region, String operation)
ComputeRpcdeleteRegionOperation in interface ComputeRpctrue if operation was deleted, false if it was not foundpublic com.google.api.services.compute.model.Operation getZoneOperation(String zone, String operation, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getZoneOperation in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listZoneOperations(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpclistZoneOperations in interface ComputeRpcpublic boolean deleteZoneOperation(String zone, String operation)
ComputeRpcdeleteZoneOperation in interface ComputeRpctrue if operation was deleted, false if it was not foundpublic com.google.api.services.compute.model.Address getGlobalAddress(String address, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getGlobalAddress in interface ComputeRpcpublic com.google.api.services.compute.model.Operation createGlobalAddress(com.google.api.services.compute.model.Address address,
Map<ComputeRpc.Option,?> options)
ComputeRpccreateGlobalAddress in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listGlobalAddresses(Map<ComputeRpc.Option,?> options)
ComputeRpclistGlobalAddresses in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteGlobalAddress(String address, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteGlobalAddress in interface ComputeRpcnull if the address was
not foundpublic com.google.api.services.compute.model.Address getRegionAddress(String region, String address, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getRegionAddress in interface ComputeRpcpublic com.google.api.services.compute.model.Operation createRegionAddress(String region, com.google.api.services.compute.model.Address address, Map<ComputeRpc.Option,?> options)
ComputeRpccreateRegionAddress in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listRegionAddresses(String region, Map<ComputeRpc.Option,?> options)
ComputeRpclistRegionAddresses in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listAddresses(Map<ComputeRpc.Option,?> options)
ComputeRpclistAddresses in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteRegionAddress(String region, String address, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteRegionAddress in interface ComputeRpcnull if the address was
not foundpublic com.google.api.services.compute.model.Operation createSnapshot(String zone, String disk, String snapshot, String description, Map<ComputeRpc.Option,?> options)
ComputeRpccreateSnapshot in interface ComputeRpcpublic com.google.api.services.compute.model.Snapshot getSnapshot(String snapshot, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getSnapshot in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Snapshot>> listSnapshots(Map<ComputeRpc.Option,?> options)
ComputeRpclistSnapshots in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteSnapshot(String snapshot, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteSnapshot in interface ComputeRpcnull if the snapshot
was not foundpublic com.google.api.services.compute.model.Operation createImage(com.google.api.services.compute.model.Image image,
Map<ComputeRpc.Option,?> options)
ComputeRpccreateImage in interface ComputeRpcpublic com.google.api.services.compute.model.Image getImage(String project, String image, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getImage in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Image>> listImages(String project, Map<ComputeRpc.Option,?> options)
ComputeRpclistImages in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteImage(String project, String image, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteImage in interface ComputeRpcnull if the
image was not foundpublic com.google.api.services.compute.model.Operation deprecateImage(String project, String image, com.google.api.services.compute.model.DeprecationStatus deprecationStatus, Map<ComputeRpc.Option,?> options)
ComputeRpcdeprecateImage in interface ComputeRpcnull if the
image was not foundpublic com.google.api.services.compute.model.Disk getDisk(String zone, String disk, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getDisk in interface ComputeRpcpublic com.google.api.services.compute.model.Operation createDisk(String zone, com.google.api.services.compute.model.Disk disk, Map<ComputeRpc.Option,?> options)
ComputeRpccreateDisk in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> listDisks(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpclistDisks in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> listDisks(Map<ComputeRpc.Option,?> options)
ComputeRpclistDisks in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteDisk(String zone, String disk, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteDisk in interface ComputeRpcnull if the disk was not
foundpublic com.google.api.services.compute.model.Operation resizeDisk(String zone, String disk, long sizeGb, Map<ComputeRpc.Option,?> options)
ComputeRpcresizeDisk in interface ComputeRpcnull if the disk was not
foundpublic com.google.api.services.compute.model.Operation createSubnetwork(String region, com.google.api.services.compute.model.Subnetwork subnetwork, Map<ComputeRpc.Option,?> options)
createSubnetwork in interface ComputeRpcpublic com.google.api.services.compute.model.Subnetwork getSubnetwork(String region, String subnetwork, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getSubnetwork in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> listSubnetworks(String region, Map<ComputeRpc.Option,?> options)
ComputeRpclistSubnetworks in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> listSubnetworks(Map<ComputeRpc.Option,?> options)
ComputeRpclistSubnetworks in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteSubnetwork(String region, String subnetwork, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteSubnetwork in interface ComputeRpcnull if the
subnetwork was not foundpublic com.google.api.services.compute.model.Operation createNetwork(com.google.api.services.compute.model.Network network,
Map<ComputeRpc.Option,?> options)
ComputeRpccreateNetwork in interface ComputeRpcpublic com.google.api.services.compute.model.Network getNetwork(String network, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getNetwork in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Network>> listNetworks(Map<ComputeRpc.Option,?> options)
ComputeRpclistNetworks in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteNetwork(String network, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteNetwork in interface ComputeRpcnull if the
network was not foundpublic com.google.api.services.compute.model.Operation createInstance(String zone, com.google.api.services.compute.model.Instance instance, Map<ComputeRpc.Option,?> options)
ComputeRpccreateInstance in interface ComputeRpcpublic com.google.api.services.compute.model.Instance getInstance(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpcnull if not found.getInstance in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> listInstances(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpclistInstances in interface ComputeRpcpublic com.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> listInstances(Map<ComputeRpc.Option,?> options)
ComputeRpclistInstances in interface ComputeRpcpublic com.google.api.services.compute.model.Operation deleteInstance(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteInstance in interface ComputeRpcnull if the
instance was not foundpublic com.google.api.services.compute.model.Operation addAccessConfig(String zone, String instance, String networkInterface, com.google.api.services.compute.model.AccessConfig accessConfig, Map<ComputeRpc.Option,?> options)
ComputeRpcaddAccessConfig in interface ComputeRpcnull if the instance
was not foundpublic com.google.api.services.compute.model.Operation attachDisk(String zone, String instance, com.google.api.services.compute.model.AttachedDisk attachedDisk, Map<ComputeRpc.Option,?> options)
ComputeRpcattachDisk in interface ComputeRpcnull if the
instance was not foundpublic com.google.api.services.compute.model.Operation deleteAccessConfig(String zone, String instance, String networkInterface, String accessConfig, Map<ComputeRpc.Option,?> options)
ComputeRpcdeleteAccessConfig in interface ComputeRpcnull if the
instance was not foundpublic com.google.api.services.compute.model.Operation detachDisk(String zone, String instance, String deviceName, Map<ComputeRpc.Option,?> options)
ComputeRpcdetachDisk in interface ComputeRpcnull if the
instance was not foundpublic String getSerialPortOutput(String zone, String instance, Integer port, Map<ComputeRpc.Option,?> options)
ComputeRpcport must be
between 1 and 4 (inclusive). If port is null output for the default port (1) is
returned.getSerialPortOutput in interface ComputeRpcnull if the instance was not foundpublic com.google.api.services.compute.model.Operation reset(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpcreset in interface ComputeRpcnull if the
instance was not foundpublic com.google.api.services.compute.model.Operation setDiskAutoDelete(String zone, String instance, String deviceName, boolean autoDelete, Map<ComputeRpc.Option,?> options)
ComputeRpcsetDiskAutoDelete in interface ComputeRpcnull if the
instance was not foundpublic com.google.api.services.compute.model.Operation setMachineType(String zone, String instance, String machineTypeUrl, Map<ComputeRpc.Option,?> options)
ComputeRpcTERMINATED state
to be able to set its machine type.setMachineType in interface ComputeRpczone - name of the zone in which the instance residesinstance - name of the instancemachineTypeUrl - full or partial URL of the machine type resource. For example zones/us-central1-f/machineTypes/n1-standard-1.null if the instance
was not foundpublic com.google.api.services.compute.model.Operation setMetadata(String zone, String instance, com.google.api.services.compute.model.Metadata metadata, Map<ComputeRpc.Option,?> options)
ComputeRpcsetMetadata in interface ComputeRpcnull if the instance
was not foundpublic com.google.api.services.compute.model.Operation setScheduling(String zone, String instance, com.google.api.services.compute.model.Scheduling scheduling, Map<ComputeRpc.Option,?> options)
ComputeRpcsetScheduling in interface ComputeRpcnull if the instance
was not foundpublic com.google.api.services.compute.model.Operation setTags(String zone, String instance, com.google.api.services.compute.model.Tags tags, Map<ComputeRpc.Option,?> options)
ComputeRpcsetTags in interface ComputeRpcnull if the instance
was not foundpublic com.google.api.services.compute.model.Operation start(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpcstart in interface ComputeRpcnull if the
instance was not foundpublic com.google.api.services.compute.model.Operation stop(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpcstop in interface ComputeRpcnull if the instance
was not foundCopyright © 2019 Google LLC. All rights reserved.