| Package | Description |
|---|---|
| com.google.api.services.container.model |
| Modifier and Type | Method and Description |
|---|---|
Cluster |
Cluster.clone() |
Cluster |
CreateClusterRequest.getCluster()
Required.
|
Cluster |
Cluster.set(String fieldName,
Object value) |
Cluster |
Cluster.setAddonsConfig(AddonsConfig addonsConfig)
Configurations for the various addons available to run in the cluster.
|
Cluster |
Cluster.setAlphaClusterFeatureGates(List<String> alphaClusterFeatureGates)
The list of user specified Kubernetes feature gates.
|
Cluster |
Cluster.setAnonymousAuthenticationConfig(AnonymousAuthenticationConfig anonymousAuthenticationConfig)
Configuration for limiting anonymous access to all endpoints except the health checks.
|
Cluster |
Cluster.setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig authenticatorGroupsConfig)
Configuration controlling RBAC group membership information.
|
Cluster |
Cluster.setAutopilot(Autopilot autopilot)
Autopilot configuration for the cluster.
|
Cluster |
Cluster.setAutoscaling(ClusterAutoscaling autoscaling)
Cluster-level autoscaling configuration.
|
Cluster |
Cluster.setBinaryAuthorization(BinaryAuthorization binaryAuthorization)
Configuration for Binary Authorization.
|
Cluster |
Cluster.setClusterIpv4Cidr(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 |
Cluster.setCompliancePostureConfig(CompliancePostureConfig compliancePostureConfig)
Enable/Disable Compliance Posture features for the cluster.
|
Cluster |
Cluster.setConditions(List<StatusCondition> conditions)
Which conditions caused the current cluster state.
|
Cluster |
Cluster.setConfidentialNodes(ConfidentialNodes confidentialNodes)
Configuration of Confidential Nodes.
|
Cluster |
Cluster.setControlPlaneEndpointsConfig(ControlPlaneEndpointsConfig controlPlaneEndpointsConfig)
Configuration for all cluster's control plane endpoints.
|
Cluster |
Cluster.setCostManagementConfig(CostManagementConfig costManagementConfig)
Configuration for the fine-grained cost management feature.
|
Cluster |
Cluster.setCreateTime(String createTime)
Output only.
|
Cluster |
Cluster.setCurrentMasterVersion(String currentMasterVersion)
Output only.
|
Cluster |
Cluster.setCurrentNodeCount(Integer currentNodeCount)
Output only.
|
Cluster |
Cluster.setCurrentNodeVersion(String currentNodeVersion)
Output only.
|
Cluster |
Cluster.setDatabaseEncryption(DatabaseEncryption databaseEncryption)
Configuration of etcd encryption.
|
Cluster |
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 |
Cluster.setDescription(String description)
An optional description of this cluster.
|
Cluster |
Cluster.setEnableK8sBetaApis(K8sBetaAPIConfig enableK8sBetaApis)
Beta APIs Config
|
Cluster |
Cluster.setEnableKubernetesAlpha(Boolean enableKubernetesAlpha)
Kubernetes alpha features are enabled on this cluster.
|
Cluster |
Cluster.setEnableTpu(Boolean enableTpu)
Enable the ability to use Cloud TPUs in this cluster.
|
Cluster |
Cluster.setEndpoint(String endpoint)
Output only.
|
Cluster |
Cluster.setEnterpriseConfig(EnterpriseConfig enterpriseConfig)
GKE Enterprise Configuration.
|
Cluster |
Cluster.setEtag(String etag)
This checksum is computed by the server based on the value of cluster fields, and may be sent
on update requests to ensure the client has an up-to-date value before proceeding.
|
Cluster |
Cluster.setExpireTime(String expireTime)
Output only.
|
Cluster |
Cluster.setFleet(Fleet fleet)
Fleet information for the cluster.
|
Cluster |
Cluster.setGkeAutoUpgradeConfig(GkeAutoUpgradeConfig gkeAutoUpgradeConfig)
Configuration for GKE auto upgrades.
|
Cluster |
Cluster.setId(String id)
Output only.
|
Cluster |
Cluster.setIdentityServiceConfig(IdentityServiceConfig identityServiceConfig)
Configuration for Identity Service component.
|
Cluster |
Cluster.setInitialClusterVersion(String initialClusterVersion)
The initial Kubernetes version for this cluster.
|
Cluster |
Cluster.setInitialNodeCount(Integer initialNodeCount)
The number of nodes to create in this cluster.
|
Cluster |
Cluster.setInstanceGroupUrls(List<String> instanceGroupUrls)
Output only.
|
Cluster |
Cluster.setIpAllocationPolicy(IPAllocationPolicy ipAllocationPolicy)
Configuration for cluster IP allocation.
|
Cluster |
Cluster.setLabelFingerprint(String labelFingerprint)
The fingerprint of the set of labels for this cluster.
|
Cluster |
Cluster.setLegacyAbac(LegacyAbac legacyAbac)
Configuration for the legacy ABAC authorization mode.
|
Cluster |
Cluster.setLocation(String location)
Output only.
|
Cluster |
Cluster.setLocations(List<String> locations)
The list of Google Compute Engine
[zones](https://{$universe.dns_names.final_documentation_domain}/compute/docs/zones#available)
in which the cluster's nodes should be located.
|
Cluster |
Cluster.setLoggingConfig(LoggingConfig loggingConfig)
Logging configuration for the cluster.
|
Cluster |
Cluster.setLoggingService(String loggingService)
The logging service the cluster should use to write logs.
|
Cluster |
Cluster.setMaintenancePolicy(MaintenancePolicy maintenancePolicy)
Configure the maintenance policy for this cluster.
|
Cluster |
Cluster.setMasterAuth(MasterAuth masterAuth)
The authentication information for accessing the master endpoint.
|
Cluster |
Cluster.setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig)
The configuration options for master authorized networks feature.
|
Cluster |
Cluster.setMeshCertificates(MeshCertificates meshCertificates)
Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
|
Cluster |
Cluster.setMonitoringConfig(MonitoringConfig monitoringConfig)
Monitoring configuration for the cluster.
|
Cluster |
Cluster.setMonitoringService(String monitoringService)
The monitoring service the cluster should use to write metrics.
|
Cluster |
Cluster.setName(String name)
The name of this cluster.
|
Cluster |
Cluster.setNetwork(String network)
The name of the Google Compute Engine
[network](https://{$universe.dns_names.final_documentation_domain}/compute/docs/networks-and-
firewalls#networks) to which the cluster is connected.
|
Cluster |
Cluster.setNetworkConfig(NetworkConfig networkConfig)
Configuration for cluster networking.
|
Cluster |
Cluster.setNetworkPolicy(NetworkPolicy networkPolicy)
Configuration options for the NetworkPolicy feature.
|
Cluster |
Cluster.setNodeConfig(NodeConfig nodeConfig)
Parameters used in creating the cluster's nodes.
|
Cluster |
Cluster.setNodeIpv4CidrSize(Integer nodeIpv4CidrSize)
Output only.
|
Cluster |
Cluster.setNodePoolAutoConfig(NodePoolAutoConfig nodePoolAutoConfig)
Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node
auto-provisioning enabled clusters.
|
Cluster |
Cluster.setNodePoolDefaults(NodePoolDefaults nodePoolDefaults)
Default NodePool settings for the entire cluster.
|
Cluster |
Cluster.setNodePools(List<NodePool> nodePools)
The node pools associated with this cluster.
|
Cluster |
Cluster.setNotificationConfig(NotificationConfig notificationConfig)
Notification configuration of the cluster.
|
Cluster |
Cluster.setParentProductConfig(ParentProductConfig parentProductConfig)
The configuration of the parent product of the cluster.
|
Cluster |
Cluster.setPodAutoscaling(PodAutoscaling podAutoscaling)
The config for pod autoscaling.
|
Cluster |
Cluster.setPrivateClusterConfig(PrivateClusterConfig privateClusterConfig)
Configuration for private cluster.
|
Cluster |
Cluster.setRbacBindingConfig(RBACBindingConfig rbacBindingConfig)
RBACBindingConfig allows user to restrict ClusterRoleBindings an RoleBindings that can be
created.
|
Cluster |
Cluster.setReleaseChannel(ReleaseChannel releaseChannel)
Release channel configuration.
|
Cluster |
Cluster.setResourceLabels(Map<String,String> resourceLabels)
The resource labels for the cluster to use to annotate any related Google Compute Engine
resources.
|
Cluster |
Cluster.setResourceUsageExportConfig(ResourceUsageExportConfig resourceUsageExportConfig)
Configuration for exporting resource usages.
|
Cluster |
Cluster.setSatisfiesPzi(Boolean satisfiesPzi)
Output only.
|
Cluster |
Cluster.setSatisfiesPzs(Boolean satisfiesPzs)
Output only.
|
Cluster |
Cluster.setSecretManagerConfig(SecretManagerConfig secretManagerConfig)
Secret CSI driver configuration.
|
Cluster |
Cluster.setSecurityPostureConfig(SecurityPostureConfig securityPostureConfig)
Enable/Disable Security Posture API features for the cluster.
|
Cluster |
Cluster.setSelfLink(String selfLink)
Output only.
|
Cluster |
Cluster.setServicesIpv4Cidr(String servicesIpv4Cidr)
Output only.
|
Cluster |
Cluster.setShieldedNodes(ShieldedNodes shieldedNodes)
Shielded Nodes configuration.
|
Cluster |
Cluster.setStatus(String status)
Output only.
|
Cluster |
Cluster.setStatusMessage(String statusMessage)
Output only.
|
Cluster |
Cluster.setSubnetwork(String subnetwork)
The name of the Google Compute Engine
[subnetwork](https://{$universe.dns_names.final_documentation_domain}/compute/docs/subnetworks)
to which the cluster is connected.
|
Cluster |
Cluster.setTpuIpv4CidrBlock(String tpuIpv4CidrBlock)
Output only.
|
Cluster |
Cluster.setUserManagedKeysConfig(UserManagedKeysConfig userManagedKeysConfig)
The Custom keys configuration for the cluster.
|
Cluster |
Cluster.setVerticalPodAutoscaling(VerticalPodAutoscaling verticalPodAutoscaling)
Cluster-level Vertical Pod Autoscaling configuration.
|
Cluster |
Cluster.setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig)
Configuration for the use of Kubernetes Service Accounts in IAM policies.
|
Cluster |
Cluster.setZone(String zone)
Output only.
|
| Modifier and Type | Method and Description |
|---|---|
List<Cluster> |
ListClustersResponse.getClusters()
A list of clusters in the project in the specified zone, or across all ones.
|
| Modifier and Type | Method and Description |
|---|---|
CreateClusterRequest |
CreateClusterRequest.setCluster(Cluster cluster)
Required.
|
| Modifier and Type | Method and Description |
|---|---|
ListClustersResponse |
ListClustersResponse.setClusters(List<Cluster> clusters)
A list of clusters in the project in the specified zone, or across all ones.
|
Copyright © 2011–2025 Google. All rights reserved.