3838import com .google .container .v1 .DeleteClusterRequest ;
3939import com .google .container .v1 .DeleteNodePoolRequest ;
4040import com .google .container .v1 .GetClusterRequest ;
41+ import com .google .container .v1 .GetJSONWebKeysRequest ;
42+ import com .google .container .v1 .GetJSONWebKeysResponse ;
4143import com .google .container .v1 .GetNodePoolRequest ;
4244import com .google .container .v1 .GetOperationRequest ;
4345import com .google .container .v1 .GetServerConfigRequest ;
@@ -418,7 +420,7 @@ public final UnaryCallable<GetClusterRequest, Cluster> getClusterCallable() {
418420 * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides.
419421 * This field has been deprecated and replaced by the parent field.
420422 * @param cluster Required. A [cluster
421- * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones .clusters)
423+ * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations .clusters)
422424 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
423425 */
424426 public final Operation createCluster (String projectId , String zone , Cluster cluster ) {
@@ -459,7 +461,7 @@ public final Operation createCluster(String projectId, String zone, Cluster clus
459461 * @param parent The parent (project and location) where the cluster will be created. Specified in
460462 * the format `projects/*/locations/*`.
461463 * @param cluster Required. A [cluster
462- * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones .clusters)
464+ * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations .clusters)
463465 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
464466 */
465467 public final Operation createCluster (String parent , Cluster cluster ) {
@@ -763,10 +765,14 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ
763765 * This field has been deprecated and replaced by the name field.
764766 * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated
765767 * and replaced by the name field.
766- * @param loggingService Required. The logging service the cluster should use to write metrics .
768+ * @param loggingService Required. The logging service the cluster should use to write logs .
767769 * Currently available options:
768- * <p>* "logging.googleapis.com" - the Google Cloud Logging service * "none" - no
769- * metrics will be exported from the cluster
770+ * <p>* `logging.googleapis.com/kubernetes` - The Cloud Logging service with a
771+ * Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging
772+ * service (no longer available as of GKE 1.15). * `none` - no logs will be exported from
773+ * the cluster.
774+ * <p>If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE
775+ * 1.14+ or `logging.googleapis.com` for earlier versions.
770776 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
771777 */
772778 public final Operation setLoggingService (
@@ -797,10 +803,14 @@ public final Operation setLoggingService(
797803 *
798804 * @param name The name (project, location, cluster) of the cluster to set logging. Specified in
799805 * the format `projects/*/locations/*/clusters/*`.
800- * @param loggingService Required. The logging service the cluster should use to write metrics .
806+ * @param loggingService Required. The logging service the cluster should use to write logs .
801807 * Currently available options:
802- * <p>* "logging.googleapis.com" - the Google Cloud Logging service * "none" - no
803- * metrics will be exported from the cluster
808+ * <p>* `logging.googleapis.com/kubernetes` - The Cloud Logging service with a
809+ * Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging
810+ * service (no longer available as of GKE 1.15). * `none` - no logs will be exported from
811+ * the cluster.
812+ * <p>If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE
813+ * 1.14+ or `logging.googleapis.com` for earlier versions.
804814 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
805815 */
806816 public final Operation setLoggingService (String name , String loggingService ) {
@@ -883,9 +893,12 @@ public final UnaryCallable<SetLoggingServiceRequest, Operation> setLoggingServic
883893 * and replaced by the name field.
884894 * @param monitoringService Required. The monitoring service the cluster should use to write
885895 * metrics. Currently available options:
886- * <p>* "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring service with
887- * Kubernetes-native resource model * "monitoring.googleapis.com" - the Google Cloud
888- * Monitoring service * "none" - no metrics will be exported from the cluster
896+ * <p>* "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a
897+ * Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud
898+ * Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be
899+ * exported from the cluster.
900+ * <p>If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE
901+ * 1.14+ or `monitoring.googleapis.com` for earlier versions.
889902 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
890903 */
891904 public final Operation setMonitoringService (
@@ -918,9 +931,12 @@ public final Operation setMonitoringService(
918931 * in the format `projects/*/locations/*/clusters/*`.
919932 * @param monitoringService Required. The monitoring service the cluster should use to write
920933 * metrics. Currently available options:
921- * <p>* "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring service with
922- * Kubernetes-native resource model * "monitoring.googleapis.com" - the Google Cloud
923- * Monitoring service * "none" - no metrics will be exported from the cluster
934+ * <p>* "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a
935+ * Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud
936+ * Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be
937+ * exported from the cluster.
938+ * <p>If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE
939+ * 1.14+ or `monitoring.googleapis.com` for earlier versions.
924940 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
925941 */
926942 public final Operation setMonitoringService (String name , String monitoringService ) {
@@ -1091,7 +1107,9 @@ public final UnaryCallable<SetAddonsConfigRequest, Operation> setAddonsConfigCal
10911107
10921108 // AUTO-GENERATED DOCUMENTATION AND METHOD
10931109 /**
1094- * Sets the locations for a specific cluster.
1110+ * Sets the locations for a specific cluster. Deprecated. Use
1111+ * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
1112+ * instead.
10951113 *
10961114 * <p>Sample code:
10971115 *
@@ -1135,7 +1153,9 @@ public final Operation setLocations(
11351153
11361154 // AUTO-GENERATED DOCUMENTATION AND METHOD
11371155 /**
1138- * Sets the locations for a specific cluster.
1156+ * Sets the locations for a specific cluster. Deprecated. Use
1157+ * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
1158+ * instead.
11391159 *
11401160 * <p>Sample code:
11411161 *
@@ -1165,7 +1185,9 @@ public final Operation setLocations(String name, List<String> locations) {
11651185
11661186 // AUTO-GENERATED DOCUMENTATION AND METHOD
11671187 /**
1168- * Sets the locations for a specific cluster.
1188+ * Sets the locations for a specific cluster. Deprecated. Use
1189+ * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
1190+ * instead.
11691191 *
11701192 * <p>Sample code:
11711193 *
@@ -1188,7 +1210,9 @@ public final Operation setLocations(SetLocationsRequest request) {
11881210
11891211 // AUTO-GENERATED DOCUMENTATION AND METHOD
11901212 /**
1191- * Sets the locations for a specific cluster.
1213+ * Sets the locations for a specific cluster. Deprecated. Use
1214+ * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
1215+ * instead.
11921216 *
11931217 * <p>Sample code:
11941218 *
@@ -1603,6 +1627,28 @@ public final Operation getOperation(String projectId, String zone, String operat
16031627 return getOperation (request );
16041628 }
16051629
1630+ // AUTO-GENERATED DOCUMENTATION AND METHOD
1631+ /**
1632+ * Gets the specified operation.
1633+ *
1634+ * <p>Sample code:
1635+ *
1636+ * <pre><code>
1637+ * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
1638+ * String name = "";
1639+ * Operation response = clusterManagerClient.getOperation(name);
1640+ * }
1641+ * </code></pre>
1642+ *
1643+ * @param name The name (project, location, operation id) of the operation to get. Specified in
1644+ * the format `projects/*/locations/*/operations/*`.
1645+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1646+ */
1647+ public final Operation getOperation (String name ) {
1648+ GetOperationRequest request = GetOperationRequest .newBuilder ().setName (name ).build ();
1649+ return getOperation (request );
1650+ }
1651+
16061652 // AUTO-GENERATED DOCUMENTATION AND METHOD
16071653 /**
16081654 * Gets the specified operation.
@@ -1827,6 +1873,48 @@ public final UnaryCallable<GetServerConfigRequest, ServerConfig> getServerConfig
18271873 return stub .getServerConfigCallable ();
18281874 }
18291875
1876+ // AUTO-GENERATED DOCUMENTATION AND METHOD
1877+ /**
1878+ * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not
1879+ * yet intended for general use, and is not available for all clusters.
1880+ *
1881+ * <p>Sample code:
1882+ *
1883+ * <pre><code>
1884+ * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
1885+ * GetJSONWebKeysRequest request = GetJSONWebKeysRequest.newBuilder().build();
1886+ * GetJSONWebKeysResponse response = clusterManagerClient.getJSONWebKeys(request);
1887+ * }
1888+ * </code></pre>
1889+ *
1890+ * @param request The request object containing all of the parameters for the API call.
1891+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1892+ */
1893+ public final GetJSONWebKeysResponse getJSONWebKeys (GetJSONWebKeysRequest request ) {
1894+ return getJSONWebKeysCallable ().call (request );
1895+ }
1896+
1897+ // AUTO-GENERATED DOCUMENTATION AND METHOD
1898+ /**
1899+ * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not
1900+ * yet intended for general use, and is not available for all clusters.
1901+ *
1902+ * <p>Sample code:
1903+ *
1904+ * <pre><code>
1905+ * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
1906+ * GetJSONWebKeysRequest request = GetJSONWebKeysRequest.newBuilder().build();
1907+ * ApiFuture<GetJSONWebKeysResponse> future = clusterManagerClient.getJSONWebKeysCallable().futureCall(request);
1908+ * // Do something
1909+ * GetJSONWebKeysResponse response = future.get();
1910+ * }
1911+ * </code></pre>
1912+ */
1913+ public final UnaryCallable <GetJSONWebKeysRequest , GetJSONWebKeysResponse >
1914+ getJSONWebKeysCallable () {
1915+ return stub .getJSONWebKeysCallable ();
1916+ }
1917+
18301918 // AUTO-GENERATED DOCUMENTATION AND METHOD
18311919 /**
18321920 * Lists the node pools for a cluster.
0 commit comments