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. |
Tuple<String,Iterable<com.google.api.services.compute.model.Address>> |
listAddresses(Map<ComputeRpc.Option,?> options)
Lists all addresses.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> |
listDisks(Map<ComputeRpc.Option,?> options)
Lists disks for all zones.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> |
listDisks(String zone,
Map<ComputeRpc.Option,?> options)
Lists the disks for the provided zone.
|
Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> |
listDiskTypes(Map<ComputeRpc.Option,?> options)
Lists disk types.
|
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.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Address>> |
listGlobalAddresses(Map<ComputeRpc.Option,?> options)
Lists the global addresses.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> |
listGlobalOperations(Map<ComputeRpc.Option,?> options)
Lists the global operations.
|
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.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> |
listInstances(Map<ComputeRpc.Option,?> options)
Lists instances.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> |
listInstances(String zone,
Map<ComputeRpc.Option,?> options)
Lists instances for the provided zone.
|
Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> |
listMachineTypes(Map<ComputeRpc.Option,?> options)
Lists machine types.
|
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.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Network>> |
listNetworks(Map<ComputeRpc.Option,?> options)
Lists networks.
|
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.
|
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.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Region>> |
listRegions(Map<ComputeRpc.Option,?> options)
Lists the regions.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Snapshot>> |
listSnapshots(Map<ComputeRpc.Option,?> options)
Lists snapshots.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> |
listSubnetworks(Map<ComputeRpc.Option,?> options)
Lists subnetworks.
|
Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> |
listSubnetworks(String region,
Map<ComputeRpc.Option,?> options)
Lists subnetworks for the provided region.
|
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.
|
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)
ComputeRpc
null
if not found.getDiskType
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> listDiskTypes(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpc
listDiskTypes
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.DiskType>> listDiskTypes(Map<ComputeRpc.Option,?> options)
ComputeRpc
listDiskTypes
in interface ComputeRpc
public com.google.api.services.compute.model.MachineType getMachineType(String zone, String machineType, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getMachineType
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> listMachineTypes(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpc
listMachineTypes
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.MachineType>> listMachineTypes(Map<ComputeRpc.Option,?> options)
ComputeRpc
listMachineTypes
in interface ComputeRpc
public com.google.api.services.compute.model.Region getRegion(String region, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getRegion
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Region>> listRegions(Map<ComputeRpc.Option,?> options)
ComputeRpc
listRegions
in interface ComputeRpc
public com.google.api.services.compute.model.Zone getZone(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getZone
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Zone>> listZones(Map<ComputeRpc.Option,?> options)
ComputeRpc
listZones
in interface ComputeRpc
public com.google.api.services.compute.model.License getLicense(String project, String license, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getLicense
in interface ComputeRpc
public com.google.api.services.compute.model.Operation getGlobalOperation(String operation, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getGlobalOperation
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listGlobalOperations(Map<ComputeRpc.Option,?> options)
ComputeRpc
listGlobalOperations
in interface ComputeRpc
public boolean deleteGlobalOperation(String operation)
ComputeRpc
deleteGlobalOperation
in interface ComputeRpc
true
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)
ComputeRpc
null
if not found.getRegionOperation
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listRegionOperations(String region, Map<ComputeRpc.Option,?> options)
ComputeRpc
listRegionOperations
in interface ComputeRpc
public boolean deleteRegionOperation(String region, String operation)
ComputeRpc
deleteRegionOperation
in interface ComputeRpc
true
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)
ComputeRpc
null
if not found.getZoneOperation
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Operation>> listZoneOperations(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpc
listZoneOperations
in interface ComputeRpc
public boolean deleteZoneOperation(String zone, String operation)
ComputeRpc
deleteZoneOperation
in interface ComputeRpc
true
if operation was deleted, false
if it was not foundpublic com.google.api.services.compute.model.Address getGlobalAddress(String address, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getGlobalAddress
in interface ComputeRpc
public com.google.api.services.compute.model.Operation createGlobalAddress(com.google.api.services.compute.model.Address address, Map<ComputeRpc.Option,?> options)
ComputeRpc
createGlobalAddress
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listGlobalAddresses(Map<ComputeRpc.Option,?> options)
ComputeRpc
listGlobalAddresses
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteGlobalAddress(String address, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteGlobalAddress
in interface ComputeRpc
null
if the address was
not foundpublic com.google.api.services.compute.model.Address getRegionAddress(String region, String address, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getRegionAddress
in interface ComputeRpc
public com.google.api.services.compute.model.Operation createRegionAddress(String region, com.google.api.services.compute.model.Address address, Map<ComputeRpc.Option,?> options)
ComputeRpc
createRegionAddress
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listRegionAddresses(String region, Map<ComputeRpc.Option,?> options)
ComputeRpc
listRegionAddresses
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Address>> listAddresses(Map<ComputeRpc.Option,?> options)
ComputeRpc
listAddresses
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteRegionAddress(String region, String address, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteRegionAddress
in interface ComputeRpc
null
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)
ComputeRpc
createSnapshot
in interface ComputeRpc
public com.google.api.services.compute.model.Snapshot getSnapshot(String snapshot, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getSnapshot
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Snapshot>> listSnapshots(Map<ComputeRpc.Option,?> options)
ComputeRpc
listSnapshots
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteSnapshot(String snapshot, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteSnapshot
in interface ComputeRpc
null
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)
ComputeRpc
createImage
in interface ComputeRpc
public com.google.api.services.compute.model.Image getImage(String project, String image, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getImage
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Image>> listImages(String project, Map<ComputeRpc.Option,?> options)
ComputeRpc
listImages
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteImage(String project, String image, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteImage
in interface ComputeRpc
null
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)
ComputeRpc
deprecateImage
in interface ComputeRpc
null
if the
image was not foundpublic com.google.api.services.compute.model.Disk getDisk(String zone, String disk, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getDisk
in interface ComputeRpc
public com.google.api.services.compute.model.Operation createDisk(String zone, com.google.api.services.compute.model.Disk disk, Map<ComputeRpc.Option,?> options)
ComputeRpc
createDisk
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> listDisks(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpc
listDisks
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Disk>> listDisks(Map<ComputeRpc.Option,?> options)
ComputeRpc
listDisks
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteDisk(String zone, String disk, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteDisk
in interface ComputeRpc
null
if the disk was not
foundpublic com.google.api.services.compute.model.Operation resizeDisk(String zone, String disk, long sizeGb, Map<ComputeRpc.Option,?> options)
ComputeRpc
resizeDisk
in interface ComputeRpc
null
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 ComputeRpc
public com.google.api.services.compute.model.Subnetwork getSubnetwork(String region, String subnetwork, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getSubnetwork
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> listSubnetworks(String region, Map<ComputeRpc.Option,?> options)
ComputeRpc
listSubnetworks
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Subnetwork>> listSubnetworks(Map<ComputeRpc.Option,?> options)
ComputeRpc
listSubnetworks
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteSubnetwork(String region, String subnetwork, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteSubnetwork
in interface ComputeRpc
null
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)
ComputeRpc
createNetwork
in interface ComputeRpc
public com.google.api.services.compute.model.Network getNetwork(String network, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getNetwork
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Network>> listNetworks(Map<ComputeRpc.Option,?> options)
ComputeRpc
listNetworks
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteNetwork(String network, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteNetwork
in interface ComputeRpc
null
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)
ComputeRpc
createInstance
in interface ComputeRpc
public com.google.api.services.compute.model.Instance getInstance(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpc
null
if not found.getInstance
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> listInstances(String zone, Map<ComputeRpc.Option,?> options)
ComputeRpc
listInstances
in interface ComputeRpc
public Tuple<String,Iterable<com.google.api.services.compute.model.Instance>> listInstances(Map<ComputeRpc.Option,?> options)
ComputeRpc
listInstances
in interface ComputeRpc
public com.google.api.services.compute.model.Operation deleteInstance(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpc
deleteInstance
in interface ComputeRpc
null
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)
ComputeRpc
addAccessConfig
in interface ComputeRpc
null
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)
ComputeRpc
attachDisk
in interface ComputeRpc
null
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)
ComputeRpc
deleteAccessConfig
in interface ComputeRpc
null
if the
instance was not foundpublic com.google.api.services.compute.model.Operation detachDisk(String zone, String instance, String deviceName, Map<ComputeRpc.Option,?> options)
ComputeRpc
detachDisk
in interface ComputeRpc
null
if the
instance was not foundpublic String getSerialPortOutput(String zone, String instance, Integer port, Map<ComputeRpc.Option,?> options)
ComputeRpc
port
must be
between 1 and 4 (inclusive). If port
is null
output for the default port (1) is
returned.getSerialPortOutput
in interface ComputeRpc
null
if the instance was not foundpublic com.google.api.services.compute.model.Operation reset(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpc
reset
in interface ComputeRpc
null
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)
ComputeRpc
setDiskAutoDelete
in interface ComputeRpc
null
if the
instance was not foundpublic com.google.api.services.compute.model.Operation setMachineType(String zone, String instance, String machineTypeUrl, Map<ComputeRpc.Option,?> options)
ComputeRpc
TERMINATED
state
to be able to set its machine type.setMachineType
in interface ComputeRpc
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 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)
ComputeRpc
setMetadata
in interface ComputeRpc
null
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)
ComputeRpc
setScheduling
in interface ComputeRpc
null
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)
ComputeRpc
setTags
in interface ComputeRpc
null
if the instance
was not foundpublic com.google.api.services.compute.model.Operation start(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpc
start
in interface ComputeRpc
null
if the
instance was not foundpublic com.google.api.services.compute.model.Operation stop(String zone, String instance, Map<ComputeRpc.Option,?> options)
ComputeRpc
stop
in interface ComputeRpc
null
if the instance
was not foundCopyright © 2019 Google LLC. All rights reserved.