@com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(ClusterOptions o) { Builder copiedBuilder = kubernetesVersions(o.getKubernetesVersions()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; } }
public ClusterOptions build() { ClusterOptions __instance__ = new ClusterOptions(kubernetesVersions); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; }
/** * Retrieve a list of Kubernetes versions * * @param containerEngineClient the service client to use to retrieve Kubernetes versions * * @return a list of Kubernetes versions * * @throws Exception if there is an error while retrieving */ private static List<String> getKubernetesVersions(ContainerEngineClient containerEngineClient) throws Exception { GetClusterOptionsResponse getResponse = containerEngineClient.getClusterOptions( GetClusterOptionsRequest.builder().clusterOptionId("all").build()); return getResponse.getClusterOptions().getKubernetesVersions(); }
/** * Retrieve a list of Kubernetes versions * * @param containerEngineClient the service client to use to retrieve Kubernetes versions * * @return a list of Kubernetes versions * * @throws Exception if there is an error while retrieving */ private static List<String> getKubernetesVersions(ContainerEngineClient containerEngineClient) throws Exception { GetClusterOptionsResponse getResponse = containerEngineClient.getClusterOptions( GetClusterOptionsRequest.builder().clusterOptionId("all").build()); return getResponse.getClusterOptions().getKubernetesVersions(); }