target.apidocs.com.google.api.services.dataproc.model.GkeNodeConfig.html Maven / Gradle / Ivy
The newest version!
GkeNodeConfig (Cloud Dataproc API v1-rev20241025-2.0.0)
com.google.api.services.dataproc.model
Class GkeNodeConfig
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataproc.model.GkeNodeConfig
-
public final class GkeNodeConfig
extends com.google.api.client.json.GenericJson
Parameters that describe cluster nodes.
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 Cloud Dataproc API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
GkeNodeConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
GkeNodeConfig
clone()
List<GkeNodePoolAcceleratorConfig>
getAccelerators()
Optional.
String
getBootDiskKmsKey()
Optional.
Integer
getLocalSsdCount()
Optional.
String
getMachineType()
Optional.
String
getMinCpuPlatform()
Optional.
Boolean
getPreemptible()
Optional.
Boolean
getSpot()
Optional.
GkeNodeConfig
set(String fieldName,
Object value)
GkeNodeConfig
setAccelerators(List<GkeNodePoolAcceleratorConfig> accelerators)
Optional.
GkeNodeConfig
setBootDiskKmsKey(String bootDiskKmsKey)
Optional.
GkeNodeConfig
setLocalSsdCount(Integer localSsdCount)
Optional.
GkeNodeConfig
setMachineType(String machineType)
Optional.
GkeNodeConfig
setMinCpuPlatform(String minCpuPlatform)
Optional.
GkeNodeConfig
setPreemptible(Boolean preemptible)
Optional.
GkeNodeConfig
setSpot(Boolean spot)
Optional.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAccelerators
public List<GkeNodePoolAcceleratorConfig> getAccelerators()
Optional. A list of hardware accelerators (https://cloud.google.com/compute/docs/gpus) to
attach to each node.
- Returns:
- value or
null
for none
-
setAccelerators
public GkeNodeConfig setAccelerators(List<GkeNodePoolAcceleratorConfig> accelerators)
Optional. A list of hardware accelerators (https://cloud.google.com/compute/docs/gpus) to
attach to each node.
- Parameters:
accelerators
- accelerators or null
for none
-
getBootDiskKmsKey
public String getBootDiskKmsKey()
Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-
engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node
pool. Specify the key using the following format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
- Returns:
- value or
null
for none
-
setBootDiskKmsKey
public GkeNodeConfig setBootDiskKmsKey(String bootDiskKmsKey)
Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-
engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node
pool. Specify the key using the following format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
- Parameters:
bootDiskKmsKey
- bootDiskKmsKey or null
for none
-
getLocalSsdCount
public Integer getLocalSsdCount()
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum
number of disks allowable per zone (see Adding Local SSDs
(https://cloud.google.com/compute/docs/disks/local-ssd)).
- Returns:
- value or
null
for none
-
setLocalSsdCount
public GkeNodeConfig setLocalSsdCount(Integer localSsdCount)
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum
number of disks allowable per zone (see Adding Local SSDs
(https://cloud.google.com/compute/docs/disks/local-ssd)).
- Parameters:
localSsdCount
- localSsdCount or null
for none
-
getMachineType
public String getMachineType()
Optional. The name of a Compute Engine machine type
(https://cloud.google.com/compute/docs/machine-types).
- Returns:
- value or
null
for none
-
setMachineType
public GkeNodeConfig setMachineType(String machineType)
Optional. The name of a Compute Engine machine type
(https://cloud.google.com/compute/docs/machine-types).
- Parameters:
machineType
- machineType or null
for none
-
getMinCpuPlatform
public String getMinCpuPlatform()
Optional. Minimum CPU platform (https://cloud.google.com/compute/docs/instances/specify-min-
cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a
newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or
Intel Sandy Bridge".
- Returns:
- value or
null
for none
-
setMinCpuPlatform
public GkeNodeConfig setMinCpuPlatform(String minCpuPlatform)
Optional. Minimum CPU platform (https://cloud.google.com/compute/docs/instances/specify-min-
cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a
newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or
Intel Sandy Bridge".
- Parameters:
minCpuPlatform
- minCpuPlatform or null
for none
-
getPreemptible
public Boolean getPreemptible()
Optional. Whether the nodes are created as legacy preemptible VM instances
(https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible
VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a
node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not
assigned (the DEFAULT node pool will assume the CONTROLLER role).
- Returns:
- value or
null
for none
-
setPreemptible
public GkeNodeConfig setPreemptible(Boolean preemptible)
Optional. Whether the nodes are created as legacy preemptible VM instances
(https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible
VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a
node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not
assigned (the DEFAULT node pool will assume the CONTROLLER role).
- Parameters:
preemptible
- preemptible or null
for none
-
getSpot
public Boolean getSpot()
Optional. Whether the nodes are created as Spot VM instances
(https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to
legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the
CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
- Returns:
- value or
null
for none
-
setSpot
public GkeNodeConfig setSpot(Boolean spot)
Optional. Whether the nodes are created as Spot VM instances
(https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to
legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the
CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
- Parameters:
spot
- spot or null
for none
-
set
public GkeNodeConfig set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public GkeNodeConfig clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy