@Generated(value="by GAPIC") @BetaApi public final class Instance extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
Instance.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
Boolean |
getCanIpForward()
Allows this instance to send and receive packets with non-matching destination or source IPs.
|
String |
getCpuPlatform()
[Output Only] The CPU platform used by this instance.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
static Instance |
getDefaultInstance() |
Boolean |
getDeletionProtection()
Whether the resource should be protected against deletion.
|
String |
getDescription()
An optional description of this resource.
|
List<AttachedDisk> |
getDisksList()
Array of disks associated with this instance.
|
DisplayDevice |
getDisplayDevice()
Enables display device for the instance.
|
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
List<AcceleratorConfig> |
getGuestAcceleratorsList()
A list of the type and count of accelerator cards attached to the instance.
|
String |
getHostname()
Specifies the hostname of the instance.
|
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getLabelFingerprint()
A fingerprint for this request, which is essentially a hash of the label's contents and used
for optimistic locking.
|
Map<String,String> |
getLabelsMap()
Labels to apply to this instance.
|
String |
getMachineType()
Full or partial URL of the machine type resource to use for this instance, in the format:
zones/zone/machineTypes/machine-type.
|
Metadata |
getMetadata()
The metadata key/value pairs assigned to this instance.
|
String |
getMinCpuPlatform()
Specifies a minimum CPU platform for the VM instance.
|
String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
List<NetworkInterface> |
getNetworkInterfacesList()
An array of network configurations for this instance.
|
ReservationAffinity |
getReservationAffinity()
Specifies the reservations that this instance can consume from.
|
Scheduling |
getScheduling()
Sets the scheduling options for this instance.
|
String |
getSelfLink()
[Output Only] Server-defined URL for this resource.
|
List<ServiceAccount> |
getServiceAccountsList()
A list of service accounts, with their specified scopes, authorized for this instance.
|
ShieldedInstanceConfig |
getShieldedInstanceConfig() |
ShieldedInstanceIntegrityPolicy |
getShieldedInstanceIntegrityPolicy() |
Boolean |
getStartRestricted()
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected
suspicious activity.
|
String |
getStatus()
[Output Only] The status of the instance.
|
String |
getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
Tags |
getTags()
Tags to apply to this instance.
|
String |
getZone()
[Output Only] URL of the zone where the instance resides.
|
int |
hashCode() |
static Instance.Builder |
newBuilder() |
static Instance.Builder |
newBuilder(Instance prototype) |
Instance.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.ApiMessage
public Boolean getCanIpForward()
public String getCpuPlatform()
public String getCreationTimestamp()
public Boolean getDeletionProtection()
public String getDescription()
public List<AttachedDisk> getDisksList()
public DisplayDevice getDisplayDevice()
public List<AcceleratorConfig> getGuestAcceleratorsList()
public String getHostname()
public String getId()
public String getKind()
public String getLabelFingerprint()
To see the latest fingerprint, make get() request to the instance.
public Map<String,String> getLabelsMap()
public String getMachineType()
To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY
For example: zones/us-central1-f/machineTypes/custom-4-5120
For a full list of restrictions, read the Specifications for custom machine types.
public Metadata getMetadata()
public String getMinCpuPlatform()
public String getName()
public List<NetworkInterface> getNetworkInterfacesList()
public ReservationAffinity getReservationAffinity()
public Scheduling getScheduling()
public String getSelfLink()
public List<ServiceAccount> getServiceAccountsList()
Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
public ShieldedInstanceConfig getShieldedInstanceConfig()
public ShieldedInstanceIntegrityPolicy getShieldedInstanceIntegrityPolicy()
public Boolean getStartRestricted()
public String getStatus()
public String getStatusMessage()
public Tags getTags()
public String getZone()
public static Instance.Builder newBuilder()
public static Instance.Builder newBuilder(Instance prototype)
public Instance.Builder toBuilder()
public static Instance getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.