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 location,
String cluster)
Retrieves a
Cluster from the container client. |
List<com.google.api.services.container.model.Cluster> |
listAllClusters(String projectId)
Retrieves a list of all
Cluster objects for the project 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 location, String cluster) throws IOException
Cluster from the container client.projectId - The ID of the project the cluster resides in.location - 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> listAllClusters(String projectId) throws IOException
Cluster objects for the project from the container client.projectId - The ID of the project the clusters reside in.Cluster objects.IOException - When an error occurred attempting to get the cluster.Copyright © 2016–2019 Google. All rights reserved.