38
38
import com .google .container .v1 .DeleteClusterRequest ;
39
39
import com .google .container .v1 .DeleteNodePoolRequest ;
40
40
import com .google .container .v1 .GetClusterRequest ;
41
+ import com .google .container .v1 .GetJSONWebKeysRequest ;
42
+ import com .google .container .v1 .GetJSONWebKeysResponse ;
41
43
import com .google .container .v1 .GetNodePoolRequest ;
42
44
import com .google .container .v1 .GetOperationRequest ;
43
45
import com .google .container .v1 .GetServerConfigRequest ;
@@ -418,7 +420,7 @@ public final UnaryCallable<GetClusterRequest, Cluster> getClusterCallable() {
418
420
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides.
419
421
* This field has been deprecated and replaced by the parent field.
420
422
* @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)
422
424
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
423
425
*/
424
426
public final Operation createCluster (String projectId , String zone , Cluster cluster ) {
@@ -459,7 +461,7 @@ public final Operation createCluster(String projectId, String zone, Cluster clus
459
461
* @param parent The parent (project and location) where the cluster will be created. Specified in
460
462
* the format `projects/*/locations/*`.
461
463
* @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)
463
465
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
464
466
*/
465
467
public final Operation createCluster (String parent , Cluster cluster ) {
@@ -763,10 +765,14 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ
763
765
* This field has been deprecated and replaced by the name field.
764
766
* @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated
765
767
* 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 .
767
769
* 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.
770
776
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
771
777
*/
772
778
public final Operation setLoggingService (
@@ -797,10 +803,14 @@ public final Operation setLoggingService(
797
803
*
798
804
* @param name The name (project, location, cluster) of the cluster to set logging. Specified in
799
805
* 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 .
801
807
* 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.
804
814
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
805
815
*/
806
816
public final Operation setLoggingService (String name , String loggingService ) {
@@ -883,9 +893,12 @@ public final UnaryCallable<SetLoggingServiceRequest, Operation> setLoggingServic
883
893
* and replaced by the name field.
884
894
* @param monitoringService Required. The monitoring service the cluster should use to write
885
895
* 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.
889
902
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
890
903
*/
891
904
public final Operation setMonitoringService (
@@ -918,9 +931,12 @@ public final Operation setMonitoringService(
918
931
* in the format `projects/*/locations/*/clusters/*`.
919
932
* @param monitoringService Required. The monitoring service the cluster should use to write
920
933
* 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.
924
940
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
925
941
*/
926
942
public final Operation setMonitoringService (String name , String monitoringService ) {
@@ -1091,7 +1107,9 @@ public final UnaryCallable<SetAddonsConfigRequest, Operation> setAddonsConfigCal
1091
1107
1092
1108
// AUTO-GENERATED DOCUMENTATION AND METHOD
1093
1109
/**
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.
1095
1113
*
1096
1114
* <p>Sample code:
1097
1115
*
@@ -1135,7 +1153,9 @@ public final Operation setLocations(
1135
1153
1136
1154
// AUTO-GENERATED DOCUMENTATION AND METHOD
1137
1155
/**
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.
1139
1159
*
1140
1160
* <p>Sample code:
1141
1161
*
@@ -1165,7 +1185,9 @@ public final Operation setLocations(String name, List<String> locations) {
1165
1185
1166
1186
// AUTO-GENERATED DOCUMENTATION AND METHOD
1167
1187
/**
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.
1169
1191
*
1170
1192
* <p>Sample code:
1171
1193
*
@@ -1188,7 +1210,9 @@ public final Operation setLocations(SetLocationsRequest request) {
1188
1210
1189
1211
// AUTO-GENERATED DOCUMENTATION AND METHOD
1190
1212
/**
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.
1192
1216
*
1193
1217
* <p>Sample code:
1194
1218
*
@@ -1603,6 +1627,28 @@ public final Operation getOperation(String projectId, String zone, String operat
1603
1627
return getOperation (request );
1604
1628
}
1605
1629
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
+
1606
1652
// AUTO-GENERATED DOCUMENTATION AND METHOD
1607
1653
/**
1608
1654
* Gets the specified operation.
@@ -1827,6 +1873,48 @@ public final UnaryCallable<GetServerConfigRequest, ServerConfig> getServerConfig
1827
1873
return stub .getServerConfigCallable ();
1828
1874
}
1829
1875
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
+
1830
1918
// AUTO-GENERATED DOCUMENTATION AND METHOD
1831
1919
/**
1832
1920
* Lists the node pools for a cluster.
0 commit comments