public class ContainerClient extends Object
| Constructor and Description |
|---|
ContainerClient(com.google.api.services.container.Container container)
Constructs a new
ContainerClient instance. |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.services.container.model.Cluster |
getCluster(String projectId,
String zone,
String cluster)
Retrieves a
Cluster from the container client. |
List<com.google.api.services.container.model.Cluster> |
listClusters(String projectId,
String zone)
Retrieves a list of
Cluster objects from the container client. |
public ContainerClient(com.google.api.services.container.Container container)
ContainerClient instance.container - The Container instance this class will utilize for interacting with
the GKE API.public com.google.api.services.container.model.Cluster getCluster(String projectId, String zone, String cluster) throws IOException
Cluster from the container client.projectId - The ID of the project the cluster resides in.zone - The location of the cluster.cluster - The name of the cluster.Cluster.IOException - When an error occurred attempting to get the cluster.public List<com.google.api.services.container.model.Cluster> listClusters(String projectId, String zone) throws IOException
Cluster objects from the container client.projectId - The ID of the project the clusters resides.zone - The location of the clusters.Cluster objects.IOException - When an error occurred attempting to get the cluster.Copyright © 2016–2019 Google. All rights reserved.