public final class NodeConfig
extends com.google.api.client.json.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 Kubernetes Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
NodeConfig() |
Modifier and Type | Method and Description |
---|---|
NodeConfig |
clone() |
java.util.List<AcceleratorConfig> |
getAccelerators()
A list of hardware accelerators to be attached to each node.
|
java.lang.Integer |
getDiskSizeGb()
Size of the disk attached to each node, specified in GB.
|
java.lang.String |
getDiskType()
Type of the disk attached to each node (e.g.
|
java.lang.String |
getImageType()
The image type to use for this node.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
java.lang.Integer |
getLocalSsdCount()
The number of local SSD disks to be attached to the node.
|
java.lang.String |
getMachineType()
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
The metadata key/value pairs assigned to instances in the cluster.
|
java.lang.String |
getMinCpuPlatform()
Minimum CPU platform to be used by this instance.
|
java.util.List<java.lang.String> |
getOauthScopes()
The set of Google API scopes to be made available on all of the node VMs under the "default"
service account.
|
java.lang.Boolean |
getPreemptible()
Whether the nodes are created as preemptible VM instances.
|
ReservationAffinity |
getReservationAffinity()
The optional reservation affinity.
|
SandboxConfig |
getSandboxConfig()
Sandbox configuration for this node.
|
java.lang.String |
getServiceAccount()
The Google Cloud Platform Service Account to be used by the node VMs.
|
ShieldedInstanceConfig |
getShieldedInstanceConfig()
Shielded Instance options.
|
java.util.List<java.lang.String> |
getTags()
The list of instance tags applied to all nodes.
|
java.util.List<NodeTaint> |
getTaints()
List of kubernetes taints to be applied to each node.
|
WorkloadMetadataConfig |
getWorkloadMetadataConfig()
The workload metadata configuration for this node.
|
NodeConfig |
set(java.lang.String fieldName,
java.lang.Object value) |
NodeConfig |
setAccelerators(java.util.List<AcceleratorConfig> accelerators)
A list of hardware accelerators to be attached to each node.
|
NodeConfig |
setDiskSizeGb(java.lang.Integer diskSizeGb)
Size of the disk attached to each node, specified in GB.
|
NodeConfig |
setDiskType(java.lang.String diskType)
Type of the disk attached to each node (e.g.
|
NodeConfig |
setImageType(java.lang.String imageType)
The image type to use for this node.
|
NodeConfig |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
NodeConfig |
setLocalSsdCount(java.lang.Integer localSsdCount)
The number of local SSD disks to be attached to the node.
|
NodeConfig |
setMachineType(java.lang.String machineType)
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g.
|
NodeConfig |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
The metadata key/value pairs assigned to instances in the cluster.
|
NodeConfig |
setMinCpuPlatform(java.lang.String minCpuPlatform)
Minimum CPU platform to be used by this instance.
|
NodeConfig |
setOauthScopes(java.util.List<java.lang.String> oauthScopes)
The set of Google API scopes to be made available on all of the node VMs under the "default"
service account.
|
NodeConfig |
setPreemptible(java.lang.Boolean preemptible)
Whether the nodes are created as preemptible VM instances.
|
NodeConfig |
setReservationAffinity(ReservationAffinity reservationAffinity)
The optional reservation affinity.
|
NodeConfig |
setSandboxConfig(SandboxConfig sandboxConfig)
Sandbox configuration for this node.
|
NodeConfig |
setServiceAccount(java.lang.String serviceAccount)
The Google Cloud Platform Service Account to be used by the node VMs.
|
NodeConfig |
setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
Shielded Instance options.
|
NodeConfig |
setTags(java.util.List<java.lang.String> tags)
The list of instance tags applied to all nodes.
|
NodeConfig |
setTaints(java.util.List<NodeTaint> taints)
List of kubernetes taints to be applied to each node.
|
NodeConfig |
setWorkloadMetadataConfig(WorkloadMetadataConfig workloadMetadataConfig)
The workload metadata configuration for this node.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<AcceleratorConfig> getAccelerators()
null
for nonepublic NodeConfig setAccelerators(java.util.List<AcceleratorConfig> accelerators)
accelerators
- accelerators or null
for nonepublic java.lang.Integer getDiskSizeGb()
null
for nonepublic NodeConfig setDiskSizeGb(java.lang.Integer diskSizeGb)
diskSizeGb
- diskSizeGb or null
for nonepublic java.lang.String getDiskType()
null
for nonepublic NodeConfig setDiskType(java.lang.String diskType)
diskType
- diskType or null
for nonepublic java.lang.String getImageType()
null
for nonepublic NodeConfig setImageType(java.lang.String imageType)
imageType
- imageType or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic NodeConfig setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic java.lang.Integer getLocalSsdCount()
null
for nonepublic NodeConfig setLocalSsdCount(java.lang.Integer localSsdCount)
localSsdCount
- localSsdCount or null
for nonepublic java.lang.String getMachineType()
null
for nonepublic NodeConfig setMachineType(java.lang.String machineType)
machineType
- machineType or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
null
for nonepublic NodeConfig setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- metadata or null
for nonepublic java.lang.String getMinCpuPlatform()
null
for nonepublic NodeConfig setMinCpuPlatform(java.lang.String minCpuPlatform)
minCpuPlatform
- minCpuPlatform or null
for nonepublic java.util.List<java.lang.String> getOauthScopes()
null
for nonepublic NodeConfig setOauthScopes(java.util.List<java.lang.String> oauthScopes)
oauthScopes
- oauthScopes or null
for nonepublic java.lang.Boolean getPreemptible()
null
for nonepublic NodeConfig setPreemptible(java.lang.Boolean preemptible)
preemptible
- preemptible or null
for nonepublic ReservationAffinity getReservationAffinity()
null
for nonepublic NodeConfig setReservationAffinity(ReservationAffinity reservationAffinity)
reservationAffinity
- reservationAffinity or null
for nonepublic SandboxConfig getSandboxConfig()
null
for nonepublic NodeConfig setSandboxConfig(SandboxConfig sandboxConfig)
sandboxConfig
- sandboxConfig or null
for nonepublic java.lang.String getServiceAccount()
null
for nonepublic NodeConfig setServiceAccount(java.lang.String serviceAccount)
serviceAccount
- serviceAccount or null
for nonepublic ShieldedInstanceConfig getShieldedInstanceConfig()
null
for nonepublic NodeConfig setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
shieldedInstanceConfig
- shieldedInstanceConfig or null
for nonepublic java.util.List<java.lang.String> getTags()
null
for nonepublic NodeConfig setTags(java.util.List<java.lang.String> tags)
tags
- tags or null
for nonepublic java.util.List<NodeTaint> getTaints()
null
for nonepublic NodeConfig setTaints(java.util.List<NodeTaint> taints)
taints
- taints or null
for nonepublic WorkloadMetadataConfig getWorkloadMetadataConfig()
null
for nonepublic NodeConfig setWorkloadMetadataConfig(WorkloadMetadataConfig workloadMetadataConfig)
workloadMetadataConfig
- workloadMetadataConfig or null
for nonepublic NodeConfig set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public NodeConfig clone()
clone
in class com.google.api.client.json.GenericJson