public class Compute.Instances
extends java.lang.Object
| Constructor and Description |
|---|
Instances() |
| Modifier and Type | Method and Description |
|---|---|
Compute.Instances.AddAccessConfig |
addAccessConfig(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String networkInterface,
AccessConfig content)
Adds an access config to an instance's network interface.
|
Compute.Instances.AggregatedList |
aggregatedList(java.lang.String project)
Retrieves aggregated list of all of the instances in your project across all regions and zones.
|
Compute.Instances.AttachDisk |
attachDisk(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
AttachedDisk content)
Attaches an existing Disk resource to an instance.
|
Compute.Instances.Delete |
delete(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Deletes the specified Instance resource.
|
Compute.Instances.DeleteAccessConfig |
deleteAccessConfig(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String accessConfig,
java.lang.String networkInterface)
Deletes an access config from an instance's network interface.
|
Compute.Instances.DetachDisk |
detachDisk(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String deviceName)
Detaches a disk from an instance.
|
Compute.Instances.Get |
get(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Returns the specified Instance resource.
|
Compute.Instances.GetGuestAttributes |
getGuestAttributes(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Returns the specified guest attributes entry.
|
Compute.Instances.GetIamPolicy |
getIamPolicy(java.lang.String project,
java.lang.String zone,
java.lang.String resource)
Gets the access control policy for a resource.
|
Compute.Instances.GetSerialPortOutput |
getSerialPortOutput(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Returns the last 1 MB of serial port output from the specified instance.
|
Compute.Instances.GetShieldedInstanceIdentity |
getShieldedInstanceIdentity(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Returns the Shielded Instance Identity of an instance
Create a request for the method "instances.getShieldedInstanceIdentity".
|
Compute.Instances.Insert |
insert(java.lang.String project,
java.lang.String zone,
Instance content)
Creates an instance resource in the specified project using the data included in the request.
|
Compute.Instances.List |
list(java.lang.String project,
java.lang.String zone)
Retrieves the list of instances contained within the specified zone.
|
Compute.Instances.ListReferrers |
listReferrers(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Retrieves the list of referrers to instances contained within the specified zone.
|
Compute.Instances.Reset |
reset(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Performs a reset on the instance.
|
Compute.Instances.SetDeletionProtection |
setDeletionProtection(java.lang.String project,
java.lang.String zone,
java.lang.String resource)
Sets deletion protection on the instance.
|
Compute.Instances.SetDiskAutoDelete |
setDiskAutoDelete(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.Boolean autoDelete,
java.lang.String deviceName)
Sets the auto-delete flag for a disk attached to an instance.
|
Compute.Instances.SetIamPolicy |
setIamPolicy(java.lang.String project,
java.lang.String zone,
java.lang.String resource,
ZoneSetPolicyRequest content)
Sets the access control policy on the specified resource.
|
Compute.Instances.SetLabels |
setLabels(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
InstancesSetLabelsRequest content)
Sets labels on an instance.
|
Compute.Instances.SetMachineResources |
setMachineResources(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
InstancesSetMachineResourcesRequest content)
Changes the number and/or type of accelerator for a stopped instance to the values specified in
the request.
|
Compute.Instances.SetMachineType |
setMachineType(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
InstancesSetMachineTypeRequest content)
Changes the machine type for a stopped instance to the machine type specified in the request.
|
Compute.Instances.SetMetadata |
setMetadata(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
Metadata content)
Sets metadata for the specified instance to the data included in the request.
|
Compute.Instances.SetMinCpuPlatform |
setMinCpuPlatform(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
InstancesSetMinCpuPlatformRequest content)
Changes the minimum CPU platform that this instance should use.
|
Compute.Instances.SetScheduling |
setScheduling(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
Scheduling content)
Sets an instance's scheduling options.
|
Compute.Instances.SetServiceAccount |
setServiceAccount(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
InstancesSetServiceAccountRequest content)
Sets the service account on the instance.
|
Compute.Instances.SetShieldedInstanceIntegrityPolicy |
setShieldedInstanceIntegrityPolicy(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
ShieldedInstanceIntegrityPolicy content)
Sets the Shielded Instance integrity policy for an instance.
|
Compute.Instances.SetTags |
setTags(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
Tags content)
Sets network tags for the specified instance to the data included in the request.
|
Compute.Instances.SimulateMaintenanceEvent |
simulateMaintenanceEvent(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Simulates a maintenance event on the instance.
|
Compute.Instances.Start |
start(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Starts an instance that was stopped using the instances().stop method.
|
Compute.Instances.StartWithEncryptionKey |
startWithEncryptionKey(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
InstancesStartWithEncryptionKeyRequest content)
Starts an instance that was stopped using the instances().stop method.
|
Compute.Instances.Stop |
stop(java.lang.String project,
java.lang.String zone,
java.lang.String instance)
Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a
later time.
|
Compute.Instances.TestIamPermissions |
testIamPermissions(java.lang.String project,
java.lang.String zone,
java.lang.String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
Compute.Instances.UpdateAccessConfig |
updateAccessConfig(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String networkInterface,
AccessConfig content)
Updates the specified access config from an instance's network interface with the data included
in the request.
|
Compute.Instances.UpdateDisplayDevice |
updateDisplayDevice(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
DisplayDevice content)
Updates the Display config for a VM instance.
|
Compute.Instances.UpdateNetworkInterface |
updateNetworkInterface(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
java.lang.String networkInterface,
NetworkInterface content)
Updates an instance's network interface.
|
Compute.Instances.UpdateShieldedInstanceConfig |
updateShieldedInstanceConfig(java.lang.String project,
java.lang.String zone,
java.lang.String instance,
ShieldedInstanceConfig content)
Updates the Shielded Instance config for an instance.
|
public Compute.Instances.AddAccessConfig addAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, AccessConfig content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - The instance name for this request.networkInterface - The name of the network interface to add to this instance.content - the AccessConfigjava.io.IOExceptionpublic Compute.Instances.AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.java.io.IOExceptionpublic Compute.Instances.AttachDisk attachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, AttachedDisk content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - The instance name for this request.content - the AttachedDiskjava.io.IOExceptionpublic Compute.Instances.Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance resource to delete.java.io.IOExceptionpublic Compute.Instances.DeleteAccessConfig deleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - The instance name for this request.accessConfig - The name of the access config to delete.networkInterface - The name of the network interface.java.io.IOExceptionpublic Compute.Instances.DetachDisk detachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Instance name for this request.deviceName - The device name of the disk to detach. Make a get() request on the instance to view currently
attached disks and device names.java.io.IOExceptionpublic Compute.Instances.Get get(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance resource to return.java.io.IOExceptionpublic Compute.Instances.GetGuestAttributes getGuestAttributes(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.java.io.IOExceptionpublic Compute.Instances.GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.resource - Name or id of the resource for this request.java.io.IOExceptionpublic Compute.Instances.GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.java.io.IOExceptionpublic Compute.Instances.GetShieldedInstanceIdentity getShieldedInstanceIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name or id of the instance scoping this request.java.io.IOExceptionpublic Compute.Instances.Insert insert(java.lang.String project, java.lang.String zone, Instance content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.content - the Instancejava.io.IOExceptionpublic Compute.Instances.List list(java.lang.String project, java.lang.String zone) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.java.io.IOExceptionpublic Compute.Instances.ListReferrers listReferrers(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the target instance scoping this request, or '-' if the request should span over all
instances in the container.java.io.IOExceptionpublic Compute.Instances.Reset reset(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.java.io.IOExceptionpublic Compute.Instances.SetDeletionProtection setDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Project ID for this request.zone - The name of the zone for this request.resource - Name or id of the resource for this request.java.io.IOExceptionpublic Compute.Instances.SetDiskAutoDelete setDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - The instance name for this request.autoDelete - Whether to auto-delete the disk when the instance is deleted.deviceName - The device name of the disk to modify. Make a get() request on the instance to view currently
attached disks and device names.java.io.IOExceptionpublic Compute.Instances.SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, ZoneSetPolicyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.resource - Name or id of the resource for this request.content - the ZoneSetPolicyRequestjava.io.IOExceptionpublic Compute.Instances.SetLabels setLabels(java.lang.String project, java.lang.String zone, java.lang.String instance, InstancesSetLabelsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.content - the InstancesSetLabelsRequestjava.io.IOExceptionpublic Compute.Instances.SetMachineResources setMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, InstancesSetMachineResourcesRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.content - the InstancesSetMachineResourcesRequestjava.io.IOExceptionpublic Compute.Instances.SetMachineType setMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, InstancesSetMachineTypeRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.content - the InstancesSetMachineTypeRequestjava.io.IOExceptionpublic Compute.Instances.SetMetadata setMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, Metadata content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.content - the Metadatajava.io.IOExceptionpublic Compute.Instances.SetMinCpuPlatform setMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, InstancesSetMinCpuPlatformRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.content - the InstancesSetMinCpuPlatformRequestjava.io.IOExceptionpublic Compute.Instances.SetScheduling setScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, Scheduling content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Instance name for this request.content - the Schedulingjava.io.IOExceptionpublic Compute.Instances.SetServiceAccount setServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, InstancesSetServiceAccountRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance resource to start.content - the InstancesSetServiceAccountRequestjava.io.IOExceptionpublic Compute.Instances.SetShieldedInstanceIntegrityPolicy setShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, ShieldedInstanceIntegrityPolicy content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the
remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name or id of the instance scoping this request.content - the ShieldedInstanceIntegrityPolicyjava.io.IOExceptionpublic Compute.Instances.SetTags setTags(java.lang.String project, java.lang.String zone, java.lang.String instance, Tags content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.content - the Tagsjava.io.IOExceptionpublic Compute.Instances.SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.java.io.IOExceptionpublic Compute.Instances.Start start(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance resource to start.java.io.IOExceptionpublic Compute.Instances.StartWithEncryptionKey startWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, InstancesStartWithEncryptionKeyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance resource to start.content - the InstancesStartWithEncryptionKeyRequestjava.io.IOExceptionpublic Compute.Instances.Stop stop(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance resource to stop.java.io.IOExceptionpublic Compute.Instances.TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, TestPermissionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.resource - Name or id of the resource for this request.content - the TestPermissionsRequestjava.io.IOExceptionpublic Compute.Instances.UpdateAccessConfig updateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, AccessConfig content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - The instance name for this request.networkInterface - The name of the network interface where the access config is attached.content - the AccessConfigjava.io.IOExceptionpublic Compute.Instances.UpdateDisplayDevice updateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, DisplayDevice content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name of the instance scoping this request.content - the DisplayDevicejava.io.IOExceptionpublic Compute.Instances.UpdateNetworkInterface updateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, NetworkInterface content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Project ID for this request.zone - The name of the zone for this request.instance - The instance name for this request.networkInterface - The name of the network interface to update.content - the NetworkInterfacejava.io.IOExceptionpublic Compute.Instances.UpdateShieldedInstanceConfig updateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, ShieldedInstanceConfig content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.project - Project ID for this request.zone - The name of the zone for this request.instance - Name or id of the instance scoping this request.content - the ShieldedInstanceConfigjava.io.IOException