Package | Description |
---|---|
com.google.cloud.compute.deprecated |
A client for Google Compute Engine – High-performance, scalable virtual machines.
|
com.google.cloud.compute.deprecated.testing |
A testing helper for Google Compute Engine.
|
Modifier and Type | Method and Description |
---|---|
InstanceId |
AddressInfo.InstanceUsage.getInstance()
Returns the identity of the instance using the address.
|
InstanceId |
InstanceInfo.getInstanceId()
Returns the instance identity.
|
static InstanceId |
InstanceId.of(String zone,
String instance)
Returns an instance identity given the zone and instance names.
|
static InstanceId |
InstanceId.of(String project,
String zone,
String instance)
Returns an instance identity given project, zone and instance names.
|
static InstanceId |
InstanceId.of(ZoneId zoneId,
String instance)
Returns an instance identity given the zone identity and the instance name.
|
Modifier and Type | Method and Description |
---|---|
List<InstanceId> |
DiskInfo.getAttachedInstances()
Returns all the identities of the instances this disk is attached to.
|
List<InstanceId> |
AddressInfo.InstanceUsage.getUsers() |
Modifier and Type | Method and Description |
---|---|
Operation |
Compute.addAccessConfig(InstanceId instance,
String networkInterface,
NetworkInterface.AccessConfig accessConfig,
Compute.OperationOption... options)
Adds an access configuration to an instance's network interface.
|
Operation |
Compute.attachDisk(InstanceId instance,
AttachedDisk.PersistentDiskConfiguration configuration,
Compute.OperationOption... options)
Attaches a persistent disk to an instance given its configuration.
|
Operation |
Compute.attachDisk(InstanceId instance,
String deviceName,
AttachedDisk.PersistentDiskConfiguration configuration,
Compute.OperationOption... options)
Attaches a persistent disk to an instance given the device name and its configuration.
|
Operation |
Compute.attachDisk(InstanceId instance,
String deviceName,
AttachedDisk.PersistentDiskConfiguration configuration,
int index,
Compute.OperationOption... options)
Attaches a persistent disk to an instance given the device name, its configuration and the
device index.
|
Operation |
Compute.deleteAccessConfig(InstanceId instance,
String networkInterface,
String accessConfig,
Compute.OperationOption... options)
Deletes an access configuration from an instance's network interface.
|
Operation |
Compute.deleteInstance(InstanceId instance,
Compute.OperationOption... options)
Deletes the requested instance.
|
Operation |
Compute.detachDisk(InstanceId instance,
String deviceName,
Compute.OperationOption... options)
Detaches a disk from an instance.
|
Instance |
Compute.getInstance(InstanceId instance,
Compute.InstanceOption... options)
Returns the requested instance or
null if not found. |
String |
Compute.getSerialPortOutput(InstanceId instance)
Returns the default serial port output for the provided instance.
|
String |
Compute.getSerialPortOutput(InstanceId instance,
int port)
Returns the serial port output for the provided instance and port number.
|
static InstanceInfo.Builder |
InstanceInfo.newBuilder(InstanceId instanceId,
MachineTypeId machineType)
Returns a builder for an
InstanceInfo object given the instance identity and the
machine type. |
static InstanceInfo |
InstanceInfo.of(InstanceId instanceId,
MachineTypeId machineType,
AttachedDisk disk,
NetworkInterface networkInterface)
Returns an
InstanceInfo object given the instance identity, the machine type, a disk to
attach to the instance and a network interface. |
Operation |
Compute.reset(InstanceId instance,
Compute.OperationOption... options)
Resets the provided instance.
|
Operation |
Compute.setDiskAutoDelete(InstanceId instance,
String deviceName,
boolean autoDelete,
Compute.OperationOption... options)
Sets the auto-delete flag for a disk attached to the provided instance.
|
Instance.Builder |
Instance.Builder.setInstanceId(InstanceId instanceId) |
abstract InstanceInfo.Builder |
InstanceInfo.Builder.setInstanceId(InstanceId instanceId)
Sets the identity of the virtual machine instance.
|
InstanceInfo.Builder |
InstanceInfo.BuilderImpl.setInstanceId(InstanceId instanceId) |
Operation |
Compute.setMachineType(InstanceId instance,
MachineTypeId machineType,
Compute.OperationOption... options)
Sets the machine type for the provided instance.
|
Operation |
Compute.setMetadata(InstanceId instance,
Metadata metadata,
Compute.OperationOption... options)
Sets the metadata for the provided instance.
|
Operation |
Compute.setSchedulingOptions(InstanceId instance,
SchedulingOptions scheduling,
Compute.OperationOption... options)
Sets the scheduling options for the provided instance.
|
Operation |
Compute.setTags(InstanceId instance,
Tags tags,
Compute.OperationOption... options)
Sets the tags for the provided instance.
|
Operation |
Compute.start(InstanceId instance,
Compute.OperationOption... options)
Starts the provided instance.
|
Operation |
Compute.stop(InstanceId instance,
Compute.OperationOption... options)
Stops the provided instance.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceCleaner.add(InstanceId instanceId) |
Copyright © 2019 Google LLC. All rights reserved.