| Package | Description | 
|---|---|
| com.google.api.services.compute | |
| com.google.api.services.compute.model | 
| Modifier and Type | Method and Description | 
|---|---|
| Compute.Instances.Insert | Compute.Instances. insert(String project,
      String zone,
      Instance content)Creates an instance resource in the specified project using the data included in the request. | 
| Compute.Instances.Update | Compute.Instances. update(String project,
      String zone,
      String instance,
      Instance content)Updates an instance only if the necessary resources are available. | 
| Constructor and Description | 
|---|
| Insert(String project,
      String zone,
      Instance content)Creates an instance resource in the specified project using the data included in the request. | 
| Update(String project,
      String zone,
      String instance,
      Instance content)Updates an instance only if the necessary resources are available. | 
| Modifier and Type | Method and Description | 
|---|---|
| Instance | Instance. clone() | 
| Instance | Instance. encodeFingerprint(byte[] fingerprint)Specifies a fingerprint for this resource, which is essentially a hash of the instance's
 contents and used for optimistic locking. | 
| Instance | Instance. encodeLabelFingerprint(byte[] labelFingerprint)A fingerprint for this request, which is essentially a hash of the label's contents and used
 for optimistic locking. | 
| Instance | Instance. set(String fieldName,
   Object value) | 
| Instance | Instance. setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures)Controls for advanced machine-related behavior features. | 
| Instance | Instance. setCanIpForward(Boolean canIpForward)Allows this instance to send and receive packets with non-matching destination or source IPs. | 
| Instance | Instance. setConfidentialInstanceConfig(ConfidentialInstanceConfig confidentialInstanceConfig) | 
| Instance | Instance. setCpuPlatform(String cpuPlatform)[Output Only] The CPU platform used by this instance. | 
| Instance | Instance. setCreationTimestamp(String creationTimestamp)[Output Only] Creation timestamp in RFC3339 text format. | 
| Instance | Instance. setDeletionProtection(Boolean deletionProtection)Whether the resource should be protected against deletion. | 
| Instance | Instance. setDescription(String description)An optional description of this resource. | 
| Instance | Instance. setDisks(List<AttachedDisk> disks)Array of disks associated with this instance. | 
| Instance | Instance. setDisplayDevice(DisplayDevice displayDevice)Enables display device for the instance. | 
| Instance | Instance. setFingerprint(String fingerprint)Specifies a fingerprint for this resource, which is essentially a hash of the instance's
 contents and used for optimistic locking. | 
| Instance | Instance. setGuestAccelerators(List<AcceleratorConfig> guestAccelerators)A list of the type and count of accelerator cards attached to the instance. | 
| Instance | Instance. setHostname(String hostname)Specifies the hostname of the instance. | 
| Instance | Instance. setId(BigInteger id)[Output Only] The unique identifier for the resource. | 
| Instance | Instance. setKind(String kind)[Output Only] Type of the resource. | 
| Instance | Instance. setLabelFingerprint(String labelFingerprint)A fingerprint for this request, which is essentially a hash of the label's contents and used
 for optimistic locking. | 
| Instance | Instance. setLabels(Map<String,String> labels)Labels to apply to this instance. | 
| Instance | Instance. setLastStartTimestamp(String lastStartTimestamp)[Output Only] Last start timestamp in RFC3339 text format. | 
| Instance | Instance. setLastStopTimestamp(String lastStopTimestamp)[Output Only] Last stop timestamp in RFC3339 text format. | 
| Instance | Instance. setLastSuspendedTimestamp(String lastSuspendedTimestamp)[Output Only] Last suspended timestamp in RFC3339 text format. | 
| Instance | Instance. setMachineType(String machineType)Full or partial URL of the machine type resource to use for this instance, in the format:
 zones/zone/machineTypes/machine-type. | 
| Instance | Instance. setMetadata(Metadata metadata)The metadata key/value pairs assigned to this instance. | 
| Instance | Instance. setMinCpuPlatform(String minCpuPlatform)Specifies a minimum CPU platform for the VM instance. | 
| Instance | Instance. setName(String name)The name of the resource, provided by the client when initially creating the resource. | 
| Instance | Instance. setNetworkInterfaces(List<NetworkInterface> networkInterfaces)An array of network configurations for this instance. | 
| Instance | Instance. setPrivateIpv6GoogleAccess(String privateIpv6GoogleAccess)The private IPv6 google access type for the VM. | 
| Instance | Instance. setReservationAffinity(ReservationAffinity reservationAffinity)Specifies the reservations that this instance can consume from. | 
| Instance | Instance. setResourcePolicies(List<String> resourcePolicies)Resource policies applied to this instance. | 
| Instance | Instance. setSatisfiesPzs(Boolean satisfiesPzs)[Output Only] Reserved for future use. | 
| Instance | Instance. setScheduling(Scheduling scheduling)Sets the scheduling options for this instance. | 
| Instance | Instance. setSelfLink(String selfLink)[Output Only] Server-defined URL for this resource. | 
| Instance | Instance. setServiceAccounts(List<ServiceAccount> serviceAccounts)A list of service accounts, with their specified scopes, authorized for this instance. | 
| Instance | Instance. setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) | 
| Instance | Instance. setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy) | 
| Instance | Instance. setStartRestricted(Boolean startRestricted)[Output Only] Whether a VM has been restricted for start because Compute Engine has detected
 suspicious activity. | 
| Instance | Instance. setStatus(String status)[Output Only] The status of the instance. | 
| Instance | Instance. setStatusMessage(String statusMessage)[Output Only] An optional, human-readable explanation of the status. | 
| Instance | Instance. setTags(Tags tags)Tags to apply to this instance. | 
| Instance | Instance. setZone(String zone)[Output Only] URL of the zone where the instance resides. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Instance> | InstancesScopedList. getInstances()[Output Only] A list of instances contained in this scope. | 
| List<Instance> | InstanceList. getItems()A list of Instance resources. | 
| Modifier and Type | Method and Description | 
|---|---|
| InstancesScopedList | InstancesScopedList. setInstances(List<Instance> instances)[Output Only] A list of instances contained in this scope. | 
| InstanceList | InstanceList. setItems(List<Instance> items)A list of Instance resources. | 
Copyright © 2011–2021 Google. All rights reserved.