public interface ComputeRpc
extends com.google.cloud.ServiceRpc
Modifier and Type | Interface and Description |
---|---|
static class |
ComputeRpc.Option |
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 diskType,
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.
|
com.google.api.services.compute.model.DiskType getDiskType(String zone, String diskType, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> listDiskTypes(String zone, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> listDiskTypes(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.MachineType getMachineType(String zone, String diskType, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> listMachineTypes(String zone, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> listMachineTypes(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Region getRegion(String region, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Region>> listRegions(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Zone getZone(String zone, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Zone>> listZones(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.License getLicense(String project, String license, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.api.services.compute.model.Operation getGlobalOperation(String operation, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listGlobalOperations(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failureboolean deleteGlobalOperation(String operation)
true
if operation was deleted, false
if it was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation getRegionOperation(String region, String operation, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listRegionOperations(String region, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failureboolean deleteRegionOperation(String region, String operation)
true
if operation was deleted, false
if it was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation getZoneOperation(String zone, String operation, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listZoneOperations(String zone, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failureboolean deleteZoneOperation(String zone, String operation)
true
if operation was deleted, false
if it was not foundComputeException
- upon failurecom.google.api.services.compute.model.Address getGlobalAddress(String address, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.api.services.compute.model.Operation createGlobalAddress(com.google.api.services.compute.model.Address address, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listGlobalAddresses(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteGlobalAddress(String address, Map<ComputeRpc.Option,?> options)
null
if the address was
not foundComputeException
- upon failurecom.google.api.services.compute.model.Address getRegionAddress(String region, String address, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failure or if region is not foundcom.google.api.services.compute.model.Operation createRegionAddress(String region, com.google.api.services.compute.model.Address address, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failure or if region is not foundcom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listRegionAddresses(String region, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failure or if region is not foundcom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listAddresses(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteRegionAddress(String region, String address, Map<ComputeRpc.Option,?> options)
null
if the address was
not foundComputeException
- upon failure or if region is not foundcom.google.api.services.compute.model.Operation createSnapshot(String zone, String disk, String snapshot, String description, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Snapshot getSnapshot(String snapshot, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Snapshot>> listSnapshots(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteSnapshot(String snapshot, Map<ComputeRpc.Option,?> options)
null
if the snapshot
was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation createImage(com.google.api.services.compute.model.Image image, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Image getImage(String project, String image, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Image>> listImages(String project, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteImage(String project, String image, Map<ComputeRpc.Option,?> options)
null
if the
image was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation deprecateImage(String project, String image, com.google.api.services.compute.model.DeprecationStatus deprecationStatus, Map<ComputeRpc.Option,?> options)
null
if the
image was not foundComputeException
- upon failurecom.google.api.services.compute.model.Disk getDisk(String zone, String disk, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.api.services.compute.model.Operation createDisk(String zone, com.google.api.services.compute.model.Disk disk, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> listDisks(String zone, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> listDisks(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteDisk(String zone, String disk, Map<ComputeRpc.Option,?> options)
null
if the disk was not
foundComputeException
- upon failurecom.google.api.services.compute.model.Operation resizeDisk(String zone, String disk, long sizeGb, Map<ComputeRpc.Option,?> options)
null
if the disk was not
foundComputeException
- upon failure or if the new disk size is smaller than the previous onecom.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.Subnetwork getSubnetwork(String region, String subnetwork, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> listSubnetworks(String region, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> listSubnetworks(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteSubnetwork(String region, String subnetwork, Map<ComputeRpc.Option,?> options)
null
if the
subnetwork was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation createNetwork(com.google.api.services.compute.model.Network network, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Network getNetwork(String network, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failurecom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Network>> listNetworks(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteNetwork(String network, Map<ComputeRpc.Option,?> options)
null
if the
network was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation createInstance(String zone, com.google.api.services.compute.model.Instance instance, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failure or if the zone does not existcom.google.api.services.compute.model.Instance getInstance(String zone, String instance, Map<ComputeRpc.Option,?> options)
null
if not found.ComputeException
- upon failure or if the zone does not existcom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> listInstances(String zone, Map<ComputeRpc.Option,?> options)
ComputeException
- upon failure or if the zone does not existcom.google.cloud.Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> listInstances(Map<ComputeRpc.Option,?> options)
ComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteInstance(String zone, String instance, Map<ComputeRpc.Option,?> options)
null
if the
instance was not foundComputeException
- upon failure or if the zone does not existcom.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)
null
if the instance
was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation attachDisk(String zone, String instance, com.google.api.services.compute.model.AttachedDisk attachedDisk, Map<ComputeRpc.Option,?> options)
null
if the
instance was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation deleteAccessConfig(String zone, String instance, String networkInterface, String accessConfig, Map<ComputeRpc.Option,?> options)
null
if the
instance was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation detachDisk(String zone, String instance, String deviceName, Map<ComputeRpc.Option,?> options)
null
if the
instance was not foundComputeException
- upon failureString getSerialPortOutput(String zone, String instance, Integer port, Map<ComputeRpc.Option,?> options)
port
must be
between 1 and 4 (inclusive). If port
is null
output for the default port (1) is
returned.null
if the instance was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation reset(String zone, String instance, Map<ComputeRpc.Option,?> options)
null
if the
instance was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation setDiskAutoDelete(String zone, String instance, String deviceName, boolean autoDelete, Map<ComputeRpc.Option,?> options)
null
if the
instance was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation setMachineType(String zone, String instance, String machineTypeUrl, Map<ComputeRpc.Option,?> options)
TERMINATED
state
to be able to set its machine type.zone
- 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 foundComputeException
- upon failurecom.google.api.services.compute.model.Operation setMetadata(String zone, String instance, com.google.api.services.compute.model.Metadata metadata, Map<ComputeRpc.Option,?> options)
null
if the instance
was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation setScheduling(String zone, String instance, com.google.api.services.compute.model.Scheduling scheduling, Map<ComputeRpc.Option,?> options)
null
if the instance
was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation setTags(String zone, String instance, com.google.api.services.compute.model.Tags tags, Map<ComputeRpc.Option,?> options)
null
if the instance
was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation start(String zone, String instance, Map<ComputeRpc.Option,?> options)
null
if the
instance was not foundComputeException
- upon failurecom.google.api.services.compute.model.Operation stop(String zone, String instance, Map<ComputeRpc.Option,?> options)
null
if the instance
was not foundComputeException
- upon failureCopyright © 2019 Google LLC. All rights reserved.