From 007f4aa29fea393c9a8973112902f92f611f0038 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:14:23 -0700 Subject: [PATCH] chore: regenerate container client (#23597) Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml --- .../v1/2.0.0/README.md | 4 +- .../api/services/container/model/Cluster.java | 24 ++ .../container/model/ClusterUpdate.java | 24 ++ .../services/container/model/NodeConfig.java | 30 +++ .../model/UserManagedKeysConfig.java | 254 ++++++++++++++++++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 7 files changed, 338 insertions(+), 6 deletions(-) create mode 100644 clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/UserManagedKeysConfig.java diff --git a/clients/google-api-services-container/v1/2.0.0/README.md b/clients/google-api-services-container/v1/2.0.0/README.md index bd612ba9aa5..d2125ed7d09 100644 --- a/clients/google-api-services-container/v1/2.0.0/README.md +++ b/clients/google-api-services-container/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-container - v1-rev20240905-2.0.0 + v1-rev20240912-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-container:v1-rev20240905-2.0.0' + implementation 'com.google.apis:google-api-services-container:v1-rev20240912-2.0.0' } ``` diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/Cluster.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/Cluster.java index 080c9f470e7..7852d4fee1e 100644 --- a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/Cluster.java +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/Cluster.java @@ -604,6 +604,13 @@ public final class Cluster extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String tpuIpv4CidrBlock; + /** + * The Custom keys configuration for the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UserManagedKeysConfig userManagedKeysConfig; + /** * Cluster-level Vertical Pod Autoscaling configuration. * The value may be {@code null}. @@ -1985,6 +1992,23 @@ public Cluster setTpuIpv4CidrBlock(java.lang.String tpuIpv4CidrBlock) { return this; } + /** + * The Custom keys configuration for the cluster. + * @return value or {@code null} for none + */ + public UserManagedKeysConfig getUserManagedKeysConfig() { + return userManagedKeysConfig; + } + + /** + * The Custom keys configuration for the cluster. + * @param userManagedKeysConfig userManagedKeysConfig or {@code null} for none + */ + public Cluster setUserManagedKeysConfig(UserManagedKeysConfig userManagedKeysConfig) { + this.userManagedKeysConfig = userManagedKeysConfig; + return this; + } + /** * Cluster-level Vertical Pod Autoscaling configuration. * @return value or {@code null} for none diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/ClusterUpdate.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/ClusterUpdate.java index 67a648fd111..f8483999de7 100644 --- a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/ClusterUpdate.java +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/ClusterUpdate.java @@ -489,6 +489,13 @@ public final class ClusterUpdate extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private AdditionalPodRangesConfig removedAdditionalPodRangesConfig; + /** + * The Custom keys configuration for the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UserManagedKeysConfig userManagedKeysConfig; + /** * The additional pod ranges to be added to the cluster. These pod ranges can be used by node * pools to allocate pod IPs. @@ -1585,6 +1592,23 @@ public ClusterUpdate setRemovedAdditionalPodRangesConfig(AdditionalPodRangesConf return this; } + /** + * The Custom keys configuration for the cluster. + * @return value or {@code null} for none + */ + public UserManagedKeysConfig getUserManagedKeysConfig() { + return userManagedKeysConfig; + } + + /** + * The Custom keys configuration for the cluster. + * @param userManagedKeysConfig userManagedKeysConfig or {@code null} for none + */ + public ClusterUpdate setUserManagedKeysConfig(UserManagedKeysConfig userManagedKeysConfig) { + this.userManagedKeysConfig = userManagedKeysConfig; + return this; + } + @Override public ClusterUpdate set(String fieldName, Object value) { return (ClusterUpdate) super.set(fieldName, value); diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeConfig.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeConfig.java index 38598116c8f..16a312eb127 100644 --- a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeConfig.java +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeConfig.java @@ -93,6 +93,15 @@ public final class NodeConfig extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String diskType; + /** + * Output only. effective_cgroup_mode is the cgroup mode actually used by the node pool. It is + * determined by the cgroup mode specified in the LinuxNodeConfig or the default cgroup mode based + * on the cluster creation version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveCgroupMode; + /** * Optional. Reserved for future use. * The value may be {@code null}. @@ -502,6 +511,27 @@ public NodeConfig setDiskType(java.lang.String diskType) { return this; } + /** + * Output only. effective_cgroup_mode is the cgroup mode actually used by the node pool. It is + * determined by the cgroup mode specified in the LinuxNodeConfig or the default cgroup mode based + * on the cluster creation version. + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveCgroupMode() { + return effectiveCgroupMode; + } + + /** + * Output only. effective_cgroup_mode is the cgroup mode actually used by the node pool. It is + * determined by the cgroup mode specified in the LinuxNodeConfig or the default cgroup mode based + * on the cluster creation version. + * @param effectiveCgroupMode effectiveCgroupMode or {@code null} for none + */ + public NodeConfig setEffectiveCgroupMode(java.lang.String effectiveCgroupMode) { + this.effectiveCgroupMode = effectiveCgroupMode; + return this; + } + /** * Optional. Reserved for future use. * @return value or {@code null} for none diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/UserManagedKeysConfig.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/UserManagedKeysConfig.java new file mode 100644 index 00000000000..4d152b5fe6a --- /dev/null +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/UserManagedKeysConfig.java @@ -0,0 +1,254 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.container.model; + +/** + * UserManagedKeysConfig holds the resource address to Keys which are used for signing certs and + * token that are used for communication within cluster. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Kubernetes Engine API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UserManagedKeysConfig extends com.google.api.client.json.GenericJson { + + /** + * The Certificate Authority Service caPool to use for the aggregation CA in this cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aggregationCa; + + /** + * The Certificate Authority Service caPool to use for the cluster CA in this cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clusterCa; + + /** + * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String controlPlaneDiskEncryptionKey; + + /** + * Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this + * cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etcdApiCa; + + /** + * Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this + * cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etcdPeerCa; + + /** + * Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gkeopsEtcdBackupEncryptionKey; + + /** + * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. + * Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryp + * toKeyVersions/{cryptoKeyVersion}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceAccountSigningKeys; + + /** + * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this + * cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypto + * Key}/cryptoKeyVersions/{cryptoKeyVersion}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceAccountVerificationKeys; + + /** + * The Certificate Authority Service caPool to use for the aggregation CA in this cluster. + * @return value or {@code null} for none + */ + public java.lang.String getAggregationCa() { + return aggregationCa; + } + + /** + * The Certificate Authority Service caPool to use for the aggregation CA in this cluster. + * @param aggregationCa aggregationCa or {@code null} for none + */ + public UserManagedKeysConfig setAggregationCa(java.lang.String aggregationCa) { + this.aggregationCa = aggregationCa; + return this; + } + + /** + * The Certificate Authority Service caPool to use for the cluster CA in this cluster. + * @return value or {@code null} for none + */ + public java.lang.String getClusterCa() { + return clusterCa; + } + + /** + * The Certificate Authority Service caPool to use for the cluster CA in this cluster. + * @param clusterCa clusterCa or {@code null} for none + */ + public UserManagedKeysConfig setClusterCa(java.lang.String clusterCa) { + this.clusterCa = clusterCa; + return this; + } + + /** + * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes. + * @return value or {@code null} for none + */ + public java.lang.String getControlPlaneDiskEncryptionKey() { + return controlPlaneDiskEncryptionKey; + } + + /** + * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control plane nodes. + * @param controlPlaneDiskEncryptionKey controlPlaneDiskEncryptionKey or {@code null} for none + */ + public UserManagedKeysConfig setControlPlaneDiskEncryptionKey(java.lang.String controlPlaneDiskEncryptionKey) { + this.controlPlaneDiskEncryptionKey = controlPlaneDiskEncryptionKey; + return this; + } + + /** + * Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this + * cluster. + * @return value or {@code null} for none + */ + public java.lang.String getEtcdApiCa() { + return etcdApiCa; + } + + /** + * Resource path of the Certificate Authority Service caPool to use for the etcd API CA in this + * cluster. + * @param etcdApiCa etcdApiCa or {@code null} for none + */ + public UserManagedKeysConfig setEtcdApiCa(java.lang.String etcdApiCa) { + this.etcdApiCa = etcdApiCa; + return this; + } + + /** + * Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this + * cluster. + * @return value or {@code null} for none + */ + public java.lang.String getEtcdPeerCa() { + return etcdPeerCa; + } + + /** + * Resource path of the Certificate Authority Service caPool to use for the etcd peer CA in this + * cluster. + * @param etcdPeerCa etcdPeerCa or {@code null} for none + */ + public UserManagedKeysConfig setEtcdPeerCa(java.lang.String etcdPeerCa) { + this.etcdPeerCa = etcdPeerCa; + return this; + } + + /** + * Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups. + * @return value or {@code null} for none + */ + public java.lang.String getGkeopsEtcdBackupEncryptionKey() { + return gkeopsEtcdBackupEncryptionKey; + } + + /** + * Resource path of the Cloud KMS cryptoKey to use for encryption of internal etcd backups. + * @param gkeopsEtcdBackupEncryptionKey gkeopsEtcdBackupEncryptionKey or {@code null} for none + */ + public UserManagedKeysConfig setGkeopsEtcdBackupEncryptionKey(java.lang.String gkeopsEtcdBackupEncryptionKey) { + this.gkeopsEtcdBackupEncryptionKey = gkeopsEtcdBackupEncryptionKey; + return this; + } + + /** + * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. + * Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryp + * toKeyVersions/{cryptoKeyVersion}` + * @return value or {@code null} for none + */ + public java.util.List getServiceAccountSigningKeys() { + return serviceAccountSigningKeys; + } + + /** + * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs issued by this cluster. + * Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryp + * toKeyVersions/{cryptoKeyVersion}` + * @param serviceAccountSigningKeys serviceAccountSigningKeys or {@code null} for none + */ + public UserManagedKeysConfig setServiceAccountSigningKeys(java.util.List serviceAccountSigningKeys) { + this.serviceAccountSigningKeys = serviceAccountSigningKeys; + return this; + } + + /** + * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this + * cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypto + * Key}/cryptoKeyVersions/{cryptoKeyVersion}` + * @return value or {@code null} for none + */ + public java.util.List getServiceAccountVerificationKeys() { + return serviceAccountVerificationKeys; + } + + /** + * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs issued by this + * cluster. Format: `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{crypto + * Key}/cryptoKeyVersions/{cryptoKeyVersion}` + * @param serviceAccountVerificationKeys serviceAccountVerificationKeys or {@code null} for none + */ + public UserManagedKeysConfig setServiceAccountVerificationKeys(java.util.List serviceAccountVerificationKeys) { + this.serviceAccountVerificationKeys = serviceAccountVerificationKeys; + return this; + } + + @Override + public UserManagedKeysConfig set(String fieldName, Object value) { + return (UserManagedKeysConfig) super.set(fieldName, value); + } + + @Override + public UserManagedKeysConfig clone() { + return (UserManagedKeysConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-container/v1/2.0.0/pom.xml b/clients/google-api-services-container/v1/2.0.0/pom.xml index 5d9f7b41328..947fd0d92b6 100644 --- a/clients/google-api-services-container/v1/2.0.0/pom.xml +++ b/clients/google-api-services-container/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-container - v1-rev20240905-2.0.0 - Kubernetes Engine API v1-rev20240905-2.0.0 + v1-rev20240912-2.0.0 + Kubernetes Engine API v1-rev20240912-2.0.0 jar 2011 diff --git a/clients/google-api-services-container/v1/README.md b/clients/google-api-services-container/v1/README.md index bd612ba9aa5..d2125ed7d09 100644 --- a/clients/google-api-services-container/v1/README.md +++ b/clients/google-api-services-container/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-container - v1-rev20240905-2.0.0 + v1-rev20240912-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-container:v1-rev20240905-2.0.0' + implementation 'com.google.apis:google-api-services-container:v1-rev20240912-2.0.0' } ```