| Constructor and Description |
|---|
Instances() |
| Modifier and Type | Method and Description |
|---|---|
Compute.Instances.AddAccessConfig |
addAccessConfig(String project,
String zone,
String instance,
String networkInterface,
AccessConfig content)
Adds an access config to an instance's network interface.
|
Compute.Instances.AggregatedList |
aggregatedList(String project)
Retrieves aggregated list of all of the instances in your project across all regions and zones.
|
Compute.Instances.AttachDisk |
attachDisk(String project,
String zone,
String instance,
AttachedDisk content)
Attaches an existing Disk resource to an instance.
|
Compute.Instances.Delete |
delete(String project,
String zone,
String instance)
Deletes the specified Instance resource.
|
Compute.Instances.DeleteAccessConfig |
deleteAccessConfig(String project,
String zone,
String instance,
String accessConfig,
String networkInterface)
Deletes an access config from an instance's network interface.
|
Compute.Instances.DetachDisk |
detachDisk(String project,
String zone,
String instance,
String deviceName)
Detaches a disk from an instance.
|
Compute.Instances.Get |
get(String project,
String zone,
String instance)
Returns the specified Instance resource.
|
Compute.Instances.GetGuestAttributes |
getGuestAttributes(String project,
String zone,
String instance)
Returns the specified guest attributes entry.
|
Compute.Instances.GetIamPolicy |
getIamPolicy(String project,
String zone,
String resource)
Gets the access control policy for a resource.
|
Compute.Instances.GetSerialPortOutput |
getSerialPortOutput(String project,
String zone,
String instance)
Returns the last 1 MB of serial port output from the specified instance.
|
Compute.Instances.GetShieldedInstanceIdentity |
getShieldedInstanceIdentity(String project,
String zone,
String instance)
Returns the Shielded Instance Identity of an instance
Create a request for the method "instances.getShieldedInstanceIdentity".
|
Compute.Instances.Insert |
insert(String project,
String zone,
Instance content)
Creates an instance resource in the specified project using the data included in the request.
|
Compute.Instances.List |
list(String project,
String zone)
Retrieves the list of instances contained within the specified zone.
|
Compute.Instances.ListReferrers |
listReferrers(String project,
String zone,
String instance)
Retrieves the list of referrers to instances contained within the specified zone.
|
Compute.Instances.Reset |
reset(String project,
String zone,
String instance)
Performs a reset on the instance.
|
Compute.Instances.SetDeletionProtection |
setDeletionProtection(String project,
String zone,
String resource)
Sets deletion protection on the instance.
|
Compute.Instances.SetDiskAutoDelete |
setDiskAutoDelete(String project,
String zone,
String instance,
Boolean autoDelete,
String deviceName)
Sets the auto-delete flag for a disk attached to an instance.
|
Compute.Instances.SetIamPolicy |
setIamPolicy(String project,
String zone,
String resource,
ZoneSetPolicyRequest content)
Sets the access control policy on the specified resource.
|
Compute.Instances.SetLabels |
setLabels(String project,
String zone,
String instance,
InstancesSetLabelsRequest content)
Sets labels on an instance.
|
Compute.Instances.SetMachineResources |
setMachineResources(String project,
String zone,
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(String project,
String zone,
String instance,
InstancesSetMachineTypeRequest content)
Changes the machine type for a stopped instance to the machine type specified in the request.
|
Compute.Instances.SetMetadata |
setMetadata(String project,
String zone,
String instance,
Metadata content)
Sets metadata for the specified instance to the data included in the request.
|
Compute.Instances.SetMinCpuPlatform |
setMinCpuPlatform(String project,
String zone,
String instance,
InstancesSetMinCpuPlatformRequest content)
Changes the minimum CPU platform that this instance should use.
|
Compute.Instances.SetScheduling |
setScheduling(String project,
String zone,
String instance,
Scheduling content)
Sets an instance's scheduling options.
|
Compute.Instances.SetServiceAccount |
setServiceAccount(String project,
String zone,
String instance,
InstancesSetServiceAccountRequest content)
Sets the service account on the instance.
|
Compute.Instances.SetShieldedInstanceIntegrityPolicy |
setShieldedInstanceIntegrityPolicy(String project,
String zone,
String instance,
ShieldedInstanceIntegrityPolicy content)
Sets the Shielded Instance integrity policy for an instance.
|
Compute.Instances.SetTags |
setTags(String project,
String zone,
String instance,
Tags content)
Sets network tags for the specified instance to the data included in the request.
|
Compute.Instances.SimulateMaintenanceEvent |
simulateMaintenanceEvent(String project,
String zone,
String instance)
Simulates a maintenance event on the instance.
|
Compute.Instances.Start |
start(String project,
String zone,
String instance)
Starts an instance that was stopped using the instances().stop method.
|
Compute.Instances.StartWithEncryptionKey |
startWithEncryptionKey(String project,
String zone,
String instance,
InstancesStartWithEncryptionKeyRequest content)
Starts an instance that was stopped using the instances().stop method.
|
Compute.Instances.Stop |
stop(String project,
String zone,
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(String project,
String zone,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
Compute.Instances.UpdateAccessConfig |
updateAccessConfig(String project,
String zone,
String instance,
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(String project,
String zone,
String instance,
DisplayDevice content)
Updates the Display config for a VM instance.
|
Compute.Instances.UpdateNetworkInterface |
updateNetworkInterface(String project,
String zone,
String instance,
String networkInterface,
NetworkInterface content)
Updates an instance's network interface.
|
Compute.Instances.UpdateShieldedInstanceConfig |
updateShieldedInstanceConfig(String project,
String zone,
String instance,
ShieldedInstanceConfig content)
Updates the Shielded Instance config for an instance.
|
public Compute.Instances.AddAccessConfig addAccessConfig(String project, String zone, String instance, String networkInterface, AccessConfig content) throws 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 AccessConfigIOExceptionpublic Compute.Instances.AggregatedList aggregatedList(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.IOExceptionpublic Compute.Instances.AttachDisk attachDisk(String project, String zone, String instance, AttachedDisk content) throws 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 AttachedDiskIOExceptionpublic Compute.Instances.Delete delete(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.DeleteAccessConfig deleteAccessConfig(String project, String zone, String instance, String accessConfig, String networkInterface) throws 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.IOExceptionpublic Compute.Instances.DetachDisk detachDisk(String project, String zone, String instance, String deviceName) throws 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.IOExceptionpublic Compute.Instances.Get get(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.GetGuestAttributes getGuestAttributes(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.GetIamPolicy getIamPolicy(String project, String zone, String resource) throws 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.IOExceptionpublic Compute.Instances.GetSerialPortOutput getSerialPortOutput(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.GetShieldedInstanceIdentity getShieldedInstanceIdentity(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.Insert insert(String project, String zone, Instance content) throws 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 InstanceIOExceptionpublic Compute.Instances.List list(String project, String zone) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.IOExceptionpublic Compute.Instances.ListReferrers listReferrers(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.Reset reset(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.SetDeletionProtection setDeletionProtection(String project, String zone, String resource) throws 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.IOExceptionpublic Compute.Instances.SetDiskAutoDelete setDiskAutoDelete(String project, String zone, String instance, Boolean autoDelete, String deviceName) throws 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.IOExceptionpublic Compute.Instances.SetIamPolicy setIamPolicy(String project, String zone, String resource, ZoneSetPolicyRequest content) throws 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 ZoneSetPolicyRequestIOExceptionpublic Compute.Instances.SetLabels setLabels(String project, String zone, String instance, InstancesSetLabelsRequest content) throws 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 InstancesSetLabelsRequestIOExceptionpublic Compute.Instances.SetMachineResources setMachineResources(String project, String zone, String instance, InstancesSetMachineResourcesRequest content) throws 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 InstancesSetMachineResourcesRequestIOExceptionpublic Compute.Instances.SetMachineType setMachineType(String project, String zone, String instance, InstancesSetMachineTypeRequest content) throws 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 InstancesSetMachineTypeRequestIOExceptionpublic Compute.Instances.SetMetadata setMetadata(String project, String zone, String instance, Metadata content) throws 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 MetadataIOExceptionpublic Compute.Instances.SetMinCpuPlatform setMinCpuPlatform(String project, String zone, String instance, InstancesSetMinCpuPlatformRequest content) throws 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 InstancesSetMinCpuPlatformRequestIOExceptionpublic Compute.Instances.SetScheduling setScheduling(String project, String zone, String instance, Scheduling content) throws 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 SchedulingIOExceptionpublic Compute.Instances.SetServiceAccount setServiceAccount(String project, String zone, String instance, InstancesSetServiceAccountRequest content) throws 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 InstancesSetServiceAccountRequestIOExceptionpublic Compute.Instances.SetShieldedInstanceIntegrityPolicy setShieldedInstanceIntegrityPolicy(String project, String zone, String instance, ShieldedInstanceIntegrityPolicy content) throws 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 ShieldedInstanceIntegrityPolicyIOExceptionpublic Compute.Instances.SetTags setTags(String project, String zone, String instance, Tags content) throws 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 TagsIOExceptionpublic Compute.Instances.SimulateMaintenanceEvent simulateMaintenanceEvent(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.Start start(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.StartWithEncryptionKey startWithEncryptionKey(String project, String zone, String instance, InstancesStartWithEncryptionKeyRequest content) throws 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 InstancesStartWithEncryptionKeyRequestIOExceptionpublic Compute.Instances.Stop stop(String project, String zone, String instance) throws 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.IOExceptionpublic Compute.Instances.TestIamPermissions testIamPermissions(String project, String zone, String resource, TestPermissionsRequest content) throws 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 TestPermissionsRequestIOExceptionpublic Compute.Instances.UpdateAccessConfig updateAccessConfig(String project, String zone, String instance, String networkInterface, AccessConfig content) throws 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 AccessConfigIOExceptionpublic Compute.Instances.UpdateDisplayDevice updateDisplayDevice(String project, String zone, String instance, DisplayDevice content) throws 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 DisplayDeviceIOExceptionpublic Compute.Instances.UpdateNetworkInterface updateNetworkInterface(String project, String zone, String instance, String networkInterface, NetworkInterface content) throws 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 NetworkInterfaceIOExceptionpublic Compute.Instances.UpdateShieldedInstanceConfig updateShieldedInstanceConfig(String project, String zone, String instance, ShieldedInstanceConfig content) throws 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 ShieldedInstanceConfigIOExceptionCopyright © 2011–2019 Google. All rights reserved.