public final class Instance extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Notebooks API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Instance() |
| Modifier and Type | Method and Description |
|---|---|
Instance |
clone() |
AcceleratorConfig |
getAcceleratorConfig()
The hardware accelerator used on this instance.
|
Long |
getBootDiskSizeGb()
Input only.
|
String |
getBootDiskType()
Input only.
|
ContainerImage |
getContainerImage()
Use a container image to start the notebook instance.
|
String |
getCreateTime()
Output only.
|
String |
getCustomGpuDriverPath()
Specify a custom Cloud Storage path where the GPU driver is stored.
|
Long |
getDataDiskSizeGb()
Input only.
|
String |
getDataDiskType()
Input only.
|
String |
getDiskEncryption()
Input only.
|
List<Disk> |
getDisks()
Output only.
|
Boolean |
getInstallGpuDriver()
Whether the end user authorizes Google Cloud to install GPU driver on this instance.
|
List<String> |
getInstanceOwners()
Input only.
|
String |
getKmsKey()
Input only.
|
Map<String,String> |
getLabels()
Labels to apply to this instance.
|
String |
getMachineType()
Required.
|
Map<String,String> |
getMetadata()
Custom metadata to apply to this instance.
|
String |
getName()
Output only.
|
String |
getNetwork()
The name of the VPC that this instance is in.
|
String |
getNicType()
Optional.
|
Boolean |
getNoProxyAccess()
If true, the notebook instance will not register with the proxy.
|
Boolean |
getNoPublicIp()
If true, no public IP will be assigned to this instance.
|
Boolean |
getNoRemoveDataDisk()
Input only.
|
String |
getPostStartupScript()
Path to a Bash script that automatically runs after a notebook instance fully boots up.
|
String |
getProxyUri()
Output only.
|
ReservationAffinity |
getReservationAffinity()
Optional.
|
String |
getServiceAccount()
The service account on this instance, giving access to other Google Cloud services.
|
List<String> |
getServiceAccountScopes()
Optional.
|
ShieldedInstanceConfig |
getShieldedInstanceConfig()
Optional.
|
String |
getState()
Output only.
|
String |
getSubnet()
The name of the subnet that this instance is in.
|
List<String> |
getTags()
Optional.
|
String |
getUpdateTime()
Output only.
|
List<UpgradeHistoryEntry> |
getUpgradeHistory()
The upgrade history of this instance.
|
VmImage |
getVmImage()
Use a Compute Engine VM image to start the notebook instance.
|
Instance |
set(String fieldName,
Object value) |
Instance |
setAcceleratorConfig(AcceleratorConfig acceleratorConfig)
The hardware accelerator used on this instance.
|
Instance |
setBootDiskSizeGb(Long bootDiskSizeGb)
Input only.
|
Instance |
setBootDiskType(String bootDiskType)
Input only.
|
Instance |
setContainerImage(ContainerImage containerImage)
Use a container image to start the notebook instance.
|
Instance |
setCreateTime(String createTime)
Output only.
|
Instance |
setCustomGpuDriverPath(String customGpuDriverPath)
Specify a custom Cloud Storage path where the GPU driver is stored.
|
Instance |
setDataDiskSizeGb(Long dataDiskSizeGb)
Input only.
|
Instance |
setDataDiskType(String dataDiskType)
Input only.
|
Instance |
setDiskEncryption(String diskEncryption)
Input only.
|
Instance |
setDisks(List<Disk> disks)
Output only.
|
Instance |
setInstallGpuDriver(Boolean installGpuDriver)
Whether the end user authorizes Google Cloud to install GPU driver on this instance.
|
Instance |
setInstanceOwners(List<String> instanceOwners)
Input only.
|
Instance |
setKmsKey(String kmsKey)
Input only.
|
Instance |
setLabels(Map<String,String> labels)
Labels to apply to this instance.
|
Instance |
setMachineType(String machineType)
Required.
|
Instance |
setMetadata(Map<String,String> metadata)
Custom metadata to apply to this instance.
|
Instance |
setName(String name)
Output only.
|
Instance |
setNetwork(String network)
The name of the VPC that this instance is in.
|
Instance |
setNicType(String nicType)
Optional.
|
Instance |
setNoProxyAccess(Boolean noProxyAccess)
If true, the notebook instance will not register with the proxy.
|
Instance |
setNoPublicIp(Boolean noPublicIp)
If true, no public IP will be assigned to this instance.
|
Instance |
setNoRemoveDataDisk(Boolean noRemoveDataDisk)
Input only.
|
Instance |
setPostStartupScript(String postStartupScript)
Path to a Bash script that automatically runs after a notebook instance fully boots up.
|
Instance |
setProxyUri(String proxyUri)
Output only.
|
Instance |
setReservationAffinity(ReservationAffinity reservationAffinity)
Optional.
|
Instance |
setServiceAccount(String serviceAccount)
The service account on this instance, giving access to other Google Cloud services.
|
Instance |
setServiceAccountScopes(List<String> serviceAccountScopes)
Optional.
|
Instance |
setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
Optional.
|
Instance |
setState(String state)
Output only.
|
Instance |
setSubnet(String subnet)
The name of the subnet that this instance is in.
|
Instance |
setTags(List<String> tags)
Optional.
|
Instance |
setUpdateTime(String updateTime)
Output only.
|
Instance |
setUpgradeHistory(List<UpgradeHistoryEntry> upgradeHistory)
The upgrade history of this instance.
|
Instance |
setVmImage(VmImage vmImage)
Use a Compute Engine VM image to start the notebook instance.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic AcceleratorConfig getAcceleratorConfig()
null for nonepublic Instance setAcceleratorConfig(AcceleratorConfig acceleratorConfig)
acceleratorConfig - acceleratorConfig or null for nonepublic Long getBootDiskSizeGb()
null for nonepublic Instance setBootDiskSizeGb(Long bootDiskSizeGb)
bootDiskSizeGb - bootDiskSizeGb or null for nonepublic String getBootDiskType()
null for nonepublic Instance setBootDiskType(String bootDiskType)
bootDiskType - bootDiskType or null for nonepublic ContainerImage getContainerImage()
null for nonepublic Instance setContainerImage(ContainerImage containerImage)
containerImage - containerImage or null for nonepublic String getCreateTime()
null for nonepublic Instance setCreateTime(String createTime)
createTime - createTime or null for nonepublic String getCustomGpuDriverPath()
null for nonepublic Instance setCustomGpuDriverPath(String customGpuDriverPath)
customGpuDriverPath - customGpuDriverPath or null for nonepublic Long getDataDiskSizeGb()
null for nonepublic Instance setDataDiskSizeGb(Long dataDiskSizeGb)
dataDiskSizeGb - dataDiskSizeGb or null for nonepublic String getDataDiskType()
null for nonepublic Instance setDataDiskType(String dataDiskType)
dataDiskType - dataDiskType or null for nonepublic String getDiskEncryption()
null for nonepublic Instance setDiskEncryption(String diskEncryption)
diskEncryption - diskEncryption or null for nonepublic List<Disk> getDisks()
null for nonepublic Instance setDisks(List<Disk> disks)
disks - disks or null for nonepublic Boolean getInstallGpuDriver()
null for nonepublic Instance setInstallGpuDriver(Boolean installGpuDriver)
installGpuDriver - installGpuDriver or null for nonepublic List<String> getInstanceOwners()
null for nonepublic Instance setInstanceOwners(List<String> instanceOwners)
instanceOwners - instanceOwners or null for nonepublic String getKmsKey()
null for nonepublic Instance setKmsKey(String kmsKey)
kmsKey - kmsKey or null for nonepublic Map<String,String> getLabels()
null for nonepublic Instance setLabels(Map<String,String> labels)
labels - labels or null for nonepublic String getMachineType()
null for nonepublic Instance setMachineType(String machineType)
machineType - machineType or null for nonepublic Map<String,String> getMetadata()
null for nonepublic Instance setMetadata(Map<String,String> metadata)
metadata - metadata or null for nonepublic String getName()
null for nonepublic Instance setName(String name)
name - name or null for nonepublic String getNetwork()
null for nonepublic Instance setNetwork(String network)
network - network or null for nonepublic String getNicType()
null for nonepublic Instance setNicType(String nicType)
nicType - nicType or null for nonepublic Boolean getNoProxyAccess()
null for nonepublic Instance setNoProxyAccess(Boolean noProxyAccess)
noProxyAccess - noProxyAccess or null for nonepublic Boolean getNoPublicIp()
null for nonepublic Instance setNoPublicIp(Boolean noPublicIp)
noPublicIp - noPublicIp or null for nonepublic Boolean getNoRemoveDataDisk()
null for nonepublic Instance setNoRemoveDataDisk(Boolean noRemoveDataDisk)
noRemoveDataDisk - noRemoveDataDisk or null for nonepublic String getPostStartupScript()
null for nonepublic Instance setPostStartupScript(String postStartupScript)
postStartupScript - postStartupScript or null for nonepublic String getProxyUri()
null for nonepublic Instance setProxyUri(String proxyUri)
proxyUri - proxyUri or null for nonepublic ReservationAffinity getReservationAffinity()
null for nonepublic Instance setReservationAffinity(ReservationAffinity reservationAffinity)
reservationAffinity - reservationAffinity or null for nonepublic String getServiceAccount()
null for nonepublic Instance setServiceAccount(String serviceAccount)
serviceAccount - serviceAccount or null for nonepublic List<String> getServiceAccountScopes()
null for nonepublic Instance setServiceAccountScopes(List<String> serviceAccountScopes)
serviceAccountScopes - serviceAccountScopes or null for nonepublic ShieldedInstanceConfig getShieldedInstanceConfig()
null for nonepublic Instance setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
shieldedInstanceConfig - shieldedInstanceConfig or null for nonepublic String getState()
null for nonepublic Instance setState(String state)
state - state or null for nonepublic String getSubnet()
null for nonepublic Instance setSubnet(String subnet)
subnet - subnet or null for nonepublic List<String> getTags()
null for nonepublic Instance setTags(List<String> tags)
tags - tags or null for nonepublic String getUpdateTime()
null for nonepublic Instance setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic List<UpgradeHistoryEntry> getUpgradeHistory()
null for nonepublic Instance setUpgradeHistory(List<UpgradeHistoryEntry> upgradeHistory)
upgradeHistory - upgradeHistory or null for nonepublic VmImage getVmImage()
null for nonepublic Instance setVmImage(VmImage vmImage)
vmImage - vmImage or null for nonepublic Instance set(String fieldName, Object value)
set in class GenericJsonpublic Instance clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.