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.
|
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.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] The current version of the node software components.
|
java.lang.String |
getDescription()
An optional description of this cluster.
|
java.lang.Boolean |
getEnableKubernetesAlpha()
Kubernetes alpha features are enabled on 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 [locations](/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 |
getMasterIpv4CidrBlock()
The IP prefix in CIDR notation to use for the hosted master network.
|
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.
|
PodSecurityPolicyConfig |
getPodSecurityPolicyConfig()
Configuration for the PodSecurityPolicy feature.
|
java.lang.Boolean |
getPrivateCluster()
If this is a private cluster setup.
|
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.
|
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.
|
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 |
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 |
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 |
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] The current version of the node software components.
|
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 |
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 [locations](/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 |
setMasterIpv4CidrBlock(java.lang.String masterIpv4CidrBlock)
The IP prefix in CIDR notation to use for the hosted master network.
|
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 |
setPodSecurityPolicyConfig(PodSecurityPolicyConfig podSecurityPolicyConfig)
Configuration for the PodSecurityPolicy feature.
|
Cluster |
setPrivateCluster(java.lang.Boolean privateCluster)
If this is a private cluster setup.
|
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 |
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 |
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 |
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, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic AddonsConfig getAddonsConfig()
null for nonepublic Cluster setAddonsConfig(AddonsConfig addonsConfig)
addonsConfig - addonsConfig 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.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 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.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 getMasterIpv4CidrBlock()
null for nonepublic Cluster setMasterIpv4CidrBlock(java.lang.String masterIpv4CidrBlock)
masterIpv4CidrBlock - masterIpv4CidrBlock 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 PodSecurityPolicyConfig getPodSecurityPolicyConfig()
null for nonepublic Cluster setPodSecurityPolicyConfig(PodSecurityPolicyConfig podSecurityPolicyConfig)
podSecurityPolicyConfig - podSecurityPolicyConfig or null for nonepublic java.lang.Boolean getPrivateCluster()
null for nonepublic Cluster setPrivateCluster(java.lang.Boolean privateCluster)
privateCluster - privateCluster 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 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 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 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.GenericJsonpublic Cluster clone()
clone in class com.google.api.client.json.GenericJson