public final class Cluster
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 |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
Cluster |
clone() |
AddonsConfig |
getAddonsConfig()
Configurations for the various addons available to run in the cluster.
|
AuthenticatorGroupsConfig |
getAuthenticatorGroupsConfig()
Configuration controlling RBAC group membership information.
|
ClusterAutoscaling |
getAutoscaling()
Cluster-level autoscaling configuration.
|
BinaryAuthorization |
getBinaryAuthorization()
Configuration for Binary Authorization.
|
java.lang.String |
getClusterIpv4Cidr()
The IP address range of the container pods in this cluster, in
[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g.
|
java.util.List<StatusCondition> |
getConditions()
Which conditions caused the current cluster state.
|
java.lang.String |
getCreateTime()
[Output only] The time the cluster was created, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
java.lang.String |
getCurrentMasterVersion()
[Output only] The current software version of the master endpoint.
|
java.lang.Integer |
getCurrentNodeCount()
[Output only] The number of nodes currently in the cluster.
|
java.lang.String |
getCurrentNodeVersion()
[Output only] Deprecated, use [NodePools.version](/kubernetes-
engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) instead.
|
DatabaseEncryption |
getDatabaseEncryption()
Configuration of etcd encryption.
|
MaxPodsConstraint |
getDefaultMaxPodsConstraint()
The default constraint on the maximum number of pods that can be run simultaneously on a node
in the node pool of this cluster.
|
java.lang.String |
getDescription()
An optional description of this cluster.
|
java.lang.Boolean |
getEnableKubernetesAlpha()
Kubernetes alpha features are enabled on this cluster.
|
java.lang.Boolean |
getEnableTpu()
Enable the ability to use Cloud TPUs in this cluster.
|
java.lang.String |
getEndpoint()
[Output only] The IP address of this cluster's master endpoint.
|
java.lang.String |
getExpireTime()
[Output only] The time the cluster will be automatically deleted in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
java.lang.String |
getInitialClusterVersion()
The initial Kubernetes version for this cluster.
|
java.lang.Integer |
getInitialNodeCount()
The number of nodes to create in this cluster.
|
java.util.List<java.lang.String> |
getInstanceGroupUrls()
Deprecated.
|
IPAllocationPolicy |
getIpAllocationPolicy()
Configuration for cluster IP allocation.
|
java.lang.String |
getLabelFingerprint()
The fingerprint of the set of labels for this cluster.
|
LegacyAbac |
getLegacyAbac()
Configuration for the legacy ABAC authorization mode.
|
java.lang.String |
getLocation()
[Output only] The name of the Google Compute Engine [zone](/compute/docs/regions-zones/regions-
zones#available) or [region](/compute/docs/regions-zones/regions-zones#available) in which the
cluster resides.
|
java.util.List<java.lang.String> |
getLocations()
The list of Google Compute Engine [zones](/compute/docs/zones#available) in which the cluster's
nodes should be located.
|
java.lang.String |
getLoggingService()
The logging service the cluster should use to write logs.
|
MaintenancePolicy |
getMaintenancePolicy()
Configure the maintenance policy for this cluster.
|
MasterAuth |
getMasterAuth()
The authentication information for accessing the master endpoint.
|
MasterAuthorizedNetworksConfig |
getMasterAuthorizedNetworksConfig()
The configuration options for master authorized networks feature.
|
java.lang.String |
getMonitoringService()
The monitoring service the cluster should use to write metrics.
|
java.lang.String |
getName()
The name of this cluster.
|
java.lang.String |
getNetwork()
The name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks)
to which the cluster is connected.
|
NetworkConfig |
getNetworkConfig()
Configuration for cluster networking.
|
NetworkPolicy |
getNetworkPolicy()
Configuration options for the NetworkPolicy feature.
|
NodeConfig |
getNodeConfig()
Parameters used in creating the cluster's nodes.
|
java.lang.Integer |
getNodeIpv4CidrSize()
[Output only] The size of the address space on each node for hosting containers.
|
java.util.List<NodePool> |
getNodePools()
The node pools associated with this cluster.
|
PrivateClusterConfig |
getPrivateClusterConfig()
Configuration for private cluster.
|
java.util.Map<java.lang.String,java.lang.String> |
getResourceLabels()
The resource labels for the cluster to use to annotate any related Google Compute Engine
resources.
|
ResourceUsageExportConfig |
getResourceUsageExportConfig()
Configuration for exporting resource usages.
|
java.lang.String |
getSelfLink()
[Output only] Server-defined URL for the resource.
|
java.lang.String |
getServicesIpv4Cidr()
[Output only] The IP address range of the Kubernetes services in this cluster, in
[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g.
|
ShieldedNodes |
getShieldedNodes()
Shielded Nodes configuration.
|
java.lang.String |
getStatus()
[Output only] The current status of this cluster.
|
java.lang.String |
getStatusMessage()
[Output only] Additional information about the current status of this cluster, if available.
|
java.lang.String |
getSubnetwork()
The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks) to which the
cluster is connected.
|
java.lang.String |
getTpuIpv4CidrBlock()
[Output only] The IP address range of the Cloud TPUs in this cluster, in
[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g.
|
VerticalPodAutoscaling |
getVerticalPodAutoscaling()
Cluster-level Vertical Pod Autoscaling configuration.
|
WorkloadIdentityConfig |
getWorkloadIdentityConfig()
Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
|
java.lang.String |
getZone()
[Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
which the cluster resides.
|
Cluster |
set(java.lang.String fieldName,
java.lang.Object value) |
Cluster |
setAddonsConfig(AddonsConfig addonsConfig)
Configurations for the various addons available to run in the cluster.
|
Cluster |
setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig authenticatorGroupsConfig)
Configuration controlling RBAC group membership information.
|
Cluster |
setAutoscaling(ClusterAutoscaling autoscaling)
Cluster-level autoscaling configuration.
|
Cluster |
setBinaryAuthorization(BinaryAuthorization binaryAuthorization)
Configuration for Binary Authorization.
|
Cluster |
setClusterIpv4Cidr(java.lang.String clusterIpv4Cidr)
The IP address range of the container pods in this cluster, in
[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g.
|
Cluster |
setConditions(java.util.List<StatusCondition> conditions)
Which conditions caused the current cluster state.
|
Cluster |
setCreateTime(java.lang.String createTime)
[Output only] The time the cluster was created, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
Cluster |
setCurrentMasterVersion(java.lang.String currentMasterVersion)
[Output only] The current software version of the master endpoint.
|
Cluster |
setCurrentNodeCount(java.lang.Integer currentNodeCount)
[Output only] The number of nodes currently in the cluster.
|
Cluster |
setCurrentNodeVersion(java.lang.String currentNodeVersion)
[Output only] Deprecated, use [NodePools.version](/kubernetes-
engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) instead.
|
Cluster |
setDatabaseEncryption(DatabaseEncryption databaseEncryption)
Configuration of etcd encryption.
|
Cluster |
setDefaultMaxPodsConstraint(MaxPodsConstraint defaultMaxPodsConstraint)
The default constraint on the maximum number of pods that can be run simultaneously on a node
in the node pool of this cluster.
|
Cluster |
setDescription(java.lang.String description)
An optional description of this cluster.
|
Cluster |
setEnableKubernetesAlpha(java.lang.Boolean enableKubernetesAlpha)
Kubernetes alpha features are enabled on this cluster.
|
Cluster |
setEnableTpu(java.lang.Boolean enableTpu)
Enable the ability to use Cloud TPUs in this cluster.
|
Cluster |
setEndpoint(java.lang.String endpoint)
[Output only] The IP address of this cluster's master endpoint.
|
Cluster |
setExpireTime(java.lang.String expireTime)
[Output only] The time the cluster will be automatically deleted in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
Cluster |
setInitialClusterVersion(java.lang.String initialClusterVersion)
The initial Kubernetes version for this cluster.
|
Cluster |
setInitialNodeCount(java.lang.Integer initialNodeCount)
The number of nodes to create in this cluster.
|
Cluster |
setInstanceGroupUrls(java.util.List<java.lang.String> instanceGroupUrls)
Deprecated.
|
Cluster |
setIpAllocationPolicy(IPAllocationPolicy ipAllocationPolicy)
Configuration for cluster IP allocation.
|
Cluster |
setLabelFingerprint(java.lang.String labelFingerprint)
The fingerprint of the set of labels for this cluster.
|
Cluster |
setLegacyAbac(LegacyAbac legacyAbac)
Configuration for the legacy ABAC authorization mode.
|
Cluster |
setLocation(java.lang.String location)
[Output only] The name of the Google Compute Engine [zone](/compute/docs/regions-zones/regions-
zones#available) or [region](/compute/docs/regions-zones/regions-zones#available) in which the
cluster resides.
|
Cluster |
setLocations(java.util.List<java.lang.String> locations)
The list of Google Compute Engine [zones](/compute/docs/zones#available) in which the cluster's
nodes should be located.
|
Cluster |
setLoggingService(java.lang.String loggingService)
The logging service the cluster should use to write logs.
|
Cluster |
setMaintenancePolicy(MaintenancePolicy maintenancePolicy)
Configure the maintenance policy for this cluster.
|
Cluster |
setMasterAuth(MasterAuth masterAuth)
The authentication information for accessing the master endpoint.
|
Cluster |
setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig)
The configuration options for master authorized networks feature.
|
Cluster |
setMonitoringService(java.lang.String monitoringService)
The monitoring service the cluster should use to write metrics.
|
Cluster |
setName(java.lang.String name)
The name of this cluster.
|
Cluster |
setNetwork(java.lang.String network)
The name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks)
to which the cluster is connected.
|
Cluster |
setNetworkConfig(NetworkConfig networkConfig)
Configuration for cluster networking.
|
Cluster |
setNetworkPolicy(NetworkPolicy networkPolicy)
Configuration options for the NetworkPolicy feature.
|
Cluster |
setNodeConfig(NodeConfig nodeConfig)
Parameters used in creating the cluster's nodes.
|
Cluster |
setNodeIpv4CidrSize(java.lang.Integer nodeIpv4CidrSize)
[Output only] The size of the address space on each node for hosting containers.
|
Cluster |
setNodePools(java.util.List<NodePool> nodePools)
The node pools associated with this cluster.
|
Cluster |
setPrivateClusterConfig(PrivateClusterConfig privateClusterConfig)
Configuration for private cluster.
|
Cluster |
setResourceLabels(java.util.Map<java.lang.String,java.lang.String> resourceLabels)
The resource labels for the cluster to use to annotate any related Google Compute Engine
resources.
|
Cluster |
setResourceUsageExportConfig(ResourceUsageExportConfig resourceUsageExportConfig)
Configuration for exporting resource usages.
|
Cluster |
setSelfLink(java.lang.String selfLink)
[Output only] Server-defined URL for the resource.
|
Cluster |
setServicesIpv4Cidr(java.lang.String servicesIpv4Cidr)
[Output only] The IP address range of the Kubernetes services in this cluster, in
[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g.
|
Cluster |
setShieldedNodes(ShieldedNodes shieldedNodes)
Shielded Nodes configuration.
|
Cluster |
setStatus(java.lang.String status)
[Output only] The current status of this cluster.
|
Cluster |
setStatusMessage(java.lang.String statusMessage)
[Output only] Additional information about the current status of this cluster, if available.
|
Cluster |
setSubnetwork(java.lang.String subnetwork)
The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks) to which the
cluster is connected.
|
Cluster |
setTpuIpv4CidrBlock(java.lang.String tpuIpv4CidrBlock)
[Output only] The IP address range of the Cloud TPUs in this cluster, in
[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g.
|
Cluster |
setVerticalPodAutoscaling(VerticalPodAutoscaling verticalPodAutoscaling)
Cluster-level Vertical Pod Autoscaling configuration.
|
Cluster |
setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig)
Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
|
Cluster |
setZone(java.lang.String zone)
[Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
which the cluster resides.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public AddonsConfig getAddonsConfig()
null
for nonepublic Cluster setAddonsConfig(AddonsConfig addonsConfig)
addonsConfig
- addonsConfig or null
for nonepublic AuthenticatorGroupsConfig getAuthenticatorGroupsConfig()
null
for nonepublic Cluster setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig authenticatorGroupsConfig)
authenticatorGroupsConfig
- authenticatorGroupsConfig or null
for nonepublic ClusterAutoscaling getAutoscaling()
null
for nonepublic Cluster setAutoscaling(ClusterAutoscaling autoscaling)
autoscaling
- autoscaling or null
for nonepublic BinaryAuthorization getBinaryAuthorization()
null
for nonepublic Cluster setBinaryAuthorization(BinaryAuthorization binaryAuthorization)
binaryAuthorization
- binaryAuthorization or null
for nonepublic java.lang.String getClusterIpv4Cidr()
null
for nonepublic Cluster setClusterIpv4Cidr(java.lang.String clusterIpv4Cidr)
clusterIpv4Cidr
- clusterIpv4Cidr or null
for nonepublic java.util.List<StatusCondition> getConditions()
null
for nonepublic Cluster setConditions(java.util.List<StatusCondition> conditions)
conditions
- conditions or null
for nonepublic java.lang.String getCreateTime()
null
for nonepublic Cluster setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic java.lang.String getCurrentMasterVersion()
null
for nonepublic Cluster setCurrentMasterVersion(java.lang.String currentMasterVersion)
currentMasterVersion
- currentMasterVersion or null
for nonepublic java.lang.Integer getCurrentNodeCount()
null
for nonepublic Cluster setCurrentNodeCount(java.lang.Integer currentNodeCount)
currentNodeCount
- currentNodeCount or null
for nonepublic java.lang.String getCurrentNodeVersion()
null
for nonepublic Cluster setCurrentNodeVersion(java.lang.String currentNodeVersion)
currentNodeVersion
- currentNodeVersion or null
for nonepublic DatabaseEncryption getDatabaseEncryption()
null
for nonepublic Cluster setDatabaseEncryption(DatabaseEncryption databaseEncryption)
databaseEncryption
- databaseEncryption or null
for nonepublic MaxPodsConstraint getDefaultMaxPodsConstraint()
null
for nonepublic Cluster setDefaultMaxPodsConstraint(MaxPodsConstraint defaultMaxPodsConstraint)
defaultMaxPodsConstraint
- defaultMaxPodsConstraint or null
for nonepublic java.lang.String getDescription()
null
for nonepublic Cluster setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Boolean getEnableKubernetesAlpha()
null
for nonepublic Cluster setEnableKubernetesAlpha(java.lang.Boolean enableKubernetesAlpha)
enableKubernetesAlpha
- enableKubernetesAlpha or null
for nonepublic java.lang.Boolean getEnableTpu()
null
for nonepublic Cluster setEnableTpu(java.lang.Boolean enableTpu)
enableTpu
- enableTpu or null
for nonepublic java.lang.String getEndpoint()
null
for nonepublic Cluster setEndpoint(java.lang.String endpoint)
endpoint
- endpoint or null
for nonepublic java.lang.String getExpireTime()
null
for nonepublic Cluster setExpireTime(java.lang.String expireTime)
expireTime
- expireTime or null
for nonepublic java.lang.String getInitialClusterVersion()
null
for nonepublic Cluster setInitialClusterVersion(java.lang.String initialClusterVersion)
initialClusterVersion
- initialClusterVersion or null
for nonepublic java.lang.Integer getInitialNodeCount()
null
for nonepublic Cluster setInitialNodeCount(java.lang.Integer initialNodeCount)
initialNodeCount
- initialNodeCount or null
for nonepublic java.util.List<java.lang.String> getInstanceGroupUrls()
null
for nonepublic Cluster setInstanceGroupUrls(java.util.List<java.lang.String> instanceGroupUrls)
instanceGroupUrls
- instanceGroupUrls or null
for nonepublic IPAllocationPolicy getIpAllocationPolicy()
null
for nonepublic Cluster setIpAllocationPolicy(IPAllocationPolicy ipAllocationPolicy)
ipAllocationPolicy
- ipAllocationPolicy or null
for nonepublic java.lang.String getLabelFingerprint()
null
for nonepublic Cluster setLabelFingerprint(java.lang.String labelFingerprint)
labelFingerprint
- labelFingerprint or null
for nonepublic LegacyAbac getLegacyAbac()
null
for nonepublic Cluster setLegacyAbac(LegacyAbac legacyAbac)
legacyAbac
- legacyAbac or null
for nonepublic java.lang.String getLocation()
null
for nonepublic Cluster setLocation(java.lang.String location)
location
- location or null
for nonepublic java.util.List<java.lang.String> getLocations()
null
for nonepublic Cluster setLocations(java.util.List<java.lang.String> locations)
locations
- locations or null
for nonepublic java.lang.String getLoggingService()
null
for nonepublic Cluster setLoggingService(java.lang.String loggingService)
loggingService
- loggingService or null
for nonepublic MaintenancePolicy getMaintenancePolicy()
null
for nonepublic Cluster setMaintenancePolicy(MaintenancePolicy maintenancePolicy)
maintenancePolicy
- maintenancePolicy or null
for nonepublic MasterAuth getMasterAuth()
null
for nonepublic Cluster setMasterAuth(MasterAuth masterAuth)
masterAuth
- masterAuth or null
for nonepublic MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig()
null
for nonepublic Cluster setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig)
masterAuthorizedNetworksConfig
- masterAuthorizedNetworksConfig or null
for nonepublic java.lang.String getMonitoringService()
null
for nonepublic Cluster setMonitoringService(java.lang.String monitoringService)
monitoringService
- monitoringService or null
for nonepublic java.lang.String getName()
null
for nonepublic Cluster setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getNetwork()
null
for nonepublic Cluster setNetwork(java.lang.String network)
network
- network or null
for nonepublic NetworkConfig getNetworkConfig()
null
for nonepublic Cluster setNetworkConfig(NetworkConfig networkConfig)
networkConfig
- networkConfig or null
for nonepublic NetworkPolicy getNetworkPolicy()
null
for nonepublic Cluster setNetworkPolicy(NetworkPolicy networkPolicy)
networkPolicy
- networkPolicy or null
for nonepublic NodeConfig getNodeConfig()
null
for nonepublic Cluster setNodeConfig(NodeConfig nodeConfig)
nodeConfig
- nodeConfig or null
for nonepublic java.lang.Integer getNodeIpv4CidrSize()
null
for nonepublic Cluster setNodeIpv4CidrSize(java.lang.Integer nodeIpv4CidrSize)
nodeIpv4CidrSize
- nodeIpv4CidrSize or null
for nonepublic java.util.List<NodePool> getNodePools()
null
for nonepublic Cluster setNodePools(java.util.List<NodePool> nodePools)
nodePools
- nodePools or null
for nonepublic PrivateClusterConfig getPrivateClusterConfig()
null
for nonepublic Cluster setPrivateClusterConfig(PrivateClusterConfig privateClusterConfig)
privateClusterConfig
- privateClusterConfig or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getResourceLabels()
null
for nonepublic Cluster setResourceLabels(java.util.Map<java.lang.String,java.lang.String> resourceLabels)
resourceLabels
- resourceLabels or null
for nonepublic ResourceUsageExportConfig getResourceUsageExportConfig()
null
for nonepublic Cluster setResourceUsageExportConfig(ResourceUsageExportConfig resourceUsageExportConfig)
resourceUsageExportConfig
- resourceUsageExportConfig or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic Cluster setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.lang.String getServicesIpv4Cidr()
null
for nonepublic Cluster setServicesIpv4Cidr(java.lang.String servicesIpv4Cidr)
servicesIpv4Cidr
- servicesIpv4Cidr or null
for nonepublic ShieldedNodes getShieldedNodes()
null
for nonepublic Cluster setShieldedNodes(ShieldedNodes shieldedNodes)
shieldedNodes
- shieldedNodes or null
for nonepublic java.lang.String getStatus()
null
for nonepublic Cluster setStatus(java.lang.String status)
status
- status or null
for nonepublic java.lang.String getStatusMessage()
null
for nonepublic Cluster setStatusMessage(java.lang.String statusMessage)
statusMessage
- statusMessage or null
for nonepublic java.lang.String getSubnetwork()
null
for nonepublic Cluster setSubnetwork(java.lang.String subnetwork)
subnetwork
- subnetwork or null
for nonepublic java.lang.String getTpuIpv4CidrBlock()
null
for nonepublic Cluster setTpuIpv4CidrBlock(java.lang.String tpuIpv4CidrBlock)
tpuIpv4CidrBlock
- tpuIpv4CidrBlock or null
for nonepublic VerticalPodAutoscaling getVerticalPodAutoscaling()
null
for nonepublic Cluster setVerticalPodAutoscaling(VerticalPodAutoscaling verticalPodAutoscaling)
verticalPodAutoscaling
- verticalPodAutoscaling or null
for nonepublic WorkloadIdentityConfig getWorkloadIdentityConfig()
null
for nonepublic Cluster setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig)
workloadIdentityConfig
- workloadIdentityConfig or null
for nonepublic java.lang.String getZone()
null
for nonepublic Cluster setZone(java.lang.String zone)
zone
- zone or null
for nonepublic Cluster set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Cluster clone()
clone
in class com.google.api.client.json.GenericJson