From e943c03297fb0c13bea1f7cd16638c027231f5c1 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Fri, 20 Feb 2026 13:10:48 -0800
Subject: [PATCH] chore: regenerate container client
---
.../v1/2.0.0/README.md | 4 +-
.../api/services/container/Container.java | 5 +-
.../api/services/container/model/Cluster.java | 12 +-
.../container/model/ClusterUpdate.java | 6 +
.../model/CompliancePostureConfig.java | 2 +
.../model/CrashLoopBackOffConfig.java | 82 +++++++++++
.../container/model/DisruptionBudget.java | 139 ++++++++++++++++++
.../container/model/MaintenancePolicy.java | 24 +++
.../container/model/NodeKubeletConfig.java | 99 +++++++++++++
.../container/model/NodeNetworkConfig.java | 30 ++--
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
.../v1beta1/2.0.0/README.md | 4 +-
.../services/container/v1beta1/Container.java | 5 +-
.../container/v1beta1/model/Cluster.java | 12 +-
.../v1beta1/model/ClusterUpdate.java | 6 +
.../model/CompliancePostureConfig.java | 2 +
.../v1beta1/model/CrashLoopBackOffConfig.java | 82 +++++++++++
.../v1beta1/model/DisruptionBudget.java | 139 ++++++++++++++++++
.../v1beta1/model/MaintenancePolicy.java | 24 +++
.../v1beta1/model/NodeKubeletConfig.java | 99 +++++++++++++
.../v1beta1/model/NodeNetworkConfig.java | 30 ++--
.../v1beta1/2.0.0/pom.xml | 4 +-
.../v1beta1/README.md | 4 +-
24 files changed, 774 insertions(+), 48 deletions(-)
create mode 100644 clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/CrashLoopBackOffConfig.java
create mode 100644 clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/DisruptionBudget.java
create mode 100644 clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/CrashLoopBackOffConfig.java
create mode 100644 clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/DisruptionBudget.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 bfe150d37b2..70652c3e36e 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:
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 CrashLoopBackOffConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum + * 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum. + * The string must be a sequence of decimal numbers, each with optional fraction and a unit + * suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". See + * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container- + * restart-delay for more details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maxContainerRestartPeriod; + + /** + * Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum + * 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum. + * The string must be a sequence of decimal numbers, each with optional fraction and a unit + * suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". See + * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container- + * restart-delay for more details. + * @return value or {@code null} for none + */ + public java.lang.String getMaxContainerRestartPeriod() { + return maxContainerRestartPeriod; + } + + /** + * Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum + * 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum. + * The string must be a sequence of decimal numbers, each with optional fraction and a unit + * suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". See + * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container- + * restart-delay for more details. + * @param maxContainerRestartPeriod maxContainerRestartPeriod or {@code null} for none + */ + public CrashLoopBackOffConfig setMaxContainerRestartPeriod(java.lang.String maxContainerRestartPeriod) { + this.maxContainerRestartPeriod = maxContainerRestartPeriod; + return this; + } + + @Override + public CrashLoopBackOffConfig set(String fieldName, Object value) { + return (CrashLoopBackOffConfig) super.set(fieldName, value); + } + + @Override + public CrashLoopBackOffConfig clone() { + return (CrashLoopBackOffConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/DisruptionBudget.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/DisruptionBudget.java new file mode 100644 index 00000000000..d4eea99490f --- /dev/null +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/DisruptionBudget.java @@ -0,0 +1,139 @@ +/* + * 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; + +/** + * DisruptionBudget defines the upgrade disruption budget for the cluster control plane. + * + *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 DisruptionBudget extends com.google.api.client.json.GenericJson { + + /** + * Output only. The last time a disruption was performed on the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastDisruptionTime; + + /** + * Output only. The last time a minor version upgrade was performed on the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastMinorVersionDisruptionTime; + + /** + * Optional. The minimum duration between two minor version upgrades of the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String minorVersionDisruptionInterval; + + /** + * Optional. The minimum duration between two patch version upgrades of the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String patchVersionDisruptionInterval; + + /** + * Output only. The last time a disruption was performed on the control plane. + * @return value or {@code null} for none + */ + public String getLastDisruptionTime() { + return lastDisruptionTime; + } + + /** + * Output only. The last time a disruption was performed on the control plane. + * @param lastDisruptionTime lastDisruptionTime or {@code null} for none + */ + public DisruptionBudget setLastDisruptionTime(String lastDisruptionTime) { + this.lastDisruptionTime = lastDisruptionTime; + return this; + } + + /** + * Output only. The last time a minor version upgrade was performed on the control plane. + * @return value or {@code null} for none + */ + public String getLastMinorVersionDisruptionTime() { + return lastMinorVersionDisruptionTime; + } + + /** + * Output only. The last time a minor version upgrade was performed on the control plane. + * @param lastMinorVersionDisruptionTime lastMinorVersionDisruptionTime or {@code null} for none + */ + public DisruptionBudget setLastMinorVersionDisruptionTime(String lastMinorVersionDisruptionTime) { + this.lastMinorVersionDisruptionTime = lastMinorVersionDisruptionTime; + return this; + } + + /** + * Optional. The minimum duration between two minor version upgrades of the control plane. + * @return value or {@code null} for none + */ + public String getMinorVersionDisruptionInterval() { + return minorVersionDisruptionInterval; + } + + /** + * Optional. The minimum duration between two minor version upgrades of the control plane. + * @param minorVersionDisruptionInterval minorVersionDisruptionInterval or {@code null} for none + */ + public DisruptionBudget setMinorVersionDisruptionInterval(String minorVersionDisruptionInterval) { + this.minorVersionDisruptionInterval = minorVersionDisruptionInterval; + return this; + } + + /** + * Optional. The minimum duration between two patch version upgrades of the control plane. + * @return value or {@code null} for none + */ + public String getPatchVersionDisruptionInterval() { + return patchVersionDisruptionInterval; + } + + /** + * Optional. The minimum duration between two patch version upgrades of the control plane. + * @param patchVersionDisruptionInterval patchVersionDisruptionInterval or {@code null} for none + */ + public DisruptionBudget setPatchVersionDisruptionInterval(String patchVersionDisruptionInterval) { + this.patchVersionDisruptionInterval = patchVersionDisruptionInterval; + return this; + } + + @Override + public DisruptionBudget set(String fieldName, Object value) { + return (DisruptionBudget) super.set(fieldName, value); + } + + @Override + public DisruptionBudget clone() { + return (DisruptionBudget) super.clone(); + } + +} diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/MaintenancePolicy.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/MaintenancePolicy.java index 14bb8ed04a2..2c94ad9cb6a 100644 --- a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/MaintenancePolicy.java +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/MaintenancePolicy.java @@ -30,6 +30,13 @@ @SuppressWarnings("javadoc") public final class MaintenancePolicy extends com.google.api.client.json.GenericJson { + /** + * Optional. The upgrade disruption budget for the cluster control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DisruptionBudget disruptionBudget; + /** * A hash identifying the version of this policy, so that updates to fields of the policy won't * accidentally undo intermediate changes (and so that users of the API unaware of some fields @@ -47,6 +54,23 @@ public final class MaintenancePolicy extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private MaintenanceWindow window; + /** + * Optional. The upgrade disruption budget for the cluster control plane. + * @return value or {@code null} for none + */ + public DisruptionBudget getDisruptionBudget() { + return disruptionBudget; + } + + /** + * Optional. The upgrade disruption budget for the cluster control plane. + * @param disruptionBudget disruptionBudget or {@code null} for none + */ + public MaintenancePolicy setDisruptionBudget(DisruptionBudget disruptionBudget) { + this.disruptionBudget = disruptionBudget; + return this; + } + /** * A hash identifying the version of this policy, so that updates to fields of the policy won't * accidentally undo intermediate changes (and so that users of the API unaware of some fields diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeKubeletConfig.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeKubeletConfig.java index ab1fee97f4a..2d5b94596c3 100644 --- a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeKubeletConfig.java +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeKubeletConfig.java @@ -97,6 +97,14 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private java.lang.String cpuManagerPolicy; + /** + * Optional. Contains configuration options to modify node-level parameters for container restart + * behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CrashLoopBackOffConfig crashLoopBackOff; + /** * Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace period (in * seconds) to use when terminating pods in response to a soft eviction threshold being met. This @@ -211,6 +219,28 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long podPidsLimit; + /** + * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in + * seconds) used to terminate critical pods during a node shutdown. This value should be <= + * shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer shutdownGracePeriodCriticalPodsSeconds; + + /** + * Optional. shutdown_grace_period_seconds is the maximum allowed grace period (in seconds) the + * total duration that the node should delay the shutdown during a graceful shutdown. This is the + * total grace period for pod termination for both regular and critical pods. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ If set to 0, node + * will not enable the graceful node shutdown functionality. This field is only valid for Spot + * VMs. Allowed values: 0, 30, 120. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer shutdownGracePeriodSeconds; + /** * Optional. Defines whether to enable single process OOM killer. If true, will prevent the * memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes @@ -380,6 +410,25 @@ public NodeKubeletConfig setCpuManagerPolicy(java.lang.String cpuManagerPolicy) return this; } + /** + * Optional. Contains configuration options to modify node-level parameters for container restart + * behavior. + * @return value or {@code null} for none + */ + public CrashLoopBackOffConfig getCrashLoopBackOff() { + return crashLoopBackOff; + } + + /** + * Optional. Contains configuration options to modify node-level parameters for container restart + * behavior. + * @param crashLoopBackOff crashLoopBackOff or {@code null} for none + */ + public NodeKubeletConfig setCrashLoopBackOff(CrashLoopBackOffConfig crashLoopBackOff) { + this.crashLoopBackOff = crashLoopBackOff; + return this; + } + /** * Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace period (in * seconds) to use when terminating pods in response to a soft eviction threshold being met. This @@ -644,6 +693,56 @@ public NodeKubeletConfig setPodPidsLimit(java.lang.Long podPidsLimit) { return this; } + /** + * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in + * seconds) used to terminate critical pods during a node shutdown. This value should be <= + * shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. + * @return value or {@code null} for none + */ + public java.lang.Integer getShutdownGracePeriodCriticalPodsSeconds() { + return shutdownGracePeriodCriticalPodsSeconds; + } + + /** + * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in + * seconds) used to terminate critical pods during a node shutdown. This value should be <= + * shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. + * @param shutdownGracePeriodCriticalPodsSeconds shutdownGracePeriodCriticalPodsSeconds or {@code null} for none + */ + public NodeKubeletConfig setShutdownGracePeriodCriticalPodsSeconds(java.lang.Integer shutdownGracePeriodCriticalPodsSeconds) { + this.shutdownGracePeriodCriticalPodsSeconds = shutdownGracePeriodCriticalPodsSeconds; + return this; + } + + /** + * Optional. shutdown_grace_period_seconds is the maximum allowed grace period (in seconds) the + * total duration that the node should delay the shutdown during a graceful shutdown. This is the + * total grace period for pod termination for both regular and critical pods. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ If set to 0, node + * will not enable the graceful node shutdown functionality. This field is only valid for Spot + * VMs. Allowed values: 0, 30, 120. + * @return value or {@code null} for none + */ + public java.lang.Integer getShutdownGracePeriodSeconds() { + return shutdownGracePeriodSeconds; + } + + /** + * Optional. shutdown_grace_period_seconds is the maximum allowed grace period (in seconds) the + * total duration that the node should delay the shutdown during a graceful shutdown. This is the + * total grace period for pod termination for both regular and critical pods. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ If set to 0, node + * will not enable the graceful node shutdown functionality. This field is only valid for Spot + * VMs. Allowed values: 0, 30, 120. + * @param shutdownGracePeriodSeconds shutdownGracePeriodSeconds or {@code null} for none + */ + public NodeKubeletConfig setShutdownGracePeriodSeconds(java.lang.Integer shutdownGracePeriodSeconds) { + this.shutdownGracePeriodSeconds = shutdownGracePeriodSeconds; + return this; + } + /** * Optional. Defines whether to enable single process OOM killer. If true, will prevent the * memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeNetworkConfig.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeNetworkConfig.java index 1e53f4d8a51..b91fbef9a4e 100644 --- a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeNetworkConfig.java +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeNetworkConfig.java @@ -140,10 +140,12 @@ public final class NodeNetworkConfig extends com.google.api.client.json.GenericJ /** * Optional. The subnetwork name/path for the node pool. Format: * projects/{project}/regions/{region}/subnetworks/{subnetwork} If the cluster is associated with - * multiple subnetworks, the subnetwork can be either: 1. A user supplied subnetwork name/full - * path during node pool creation. Example1: my-subnet Example2: projects/gke-project/regions/us- - * central1/subnetworks/my-subnet 2. A subnetwork path picked based on the IP utilization during - * node pool creation and is immutable. + * multiple subnetworks, the subnetwork can be either: - A user supplied subnetwork name during + * node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, + * start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a + * number. - A full subnetwork path during node pool creation, such as `projects/gke- + * project/regions/us-central1/subnetworks/my-subnet` - A subnetwork path picked based on the IP + * utilization during node pool creation and is immutable. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -372,10 +374,12 @@ public NodeNetworkConfig setPodRange(java.lang.String podRange) { /** * Optional. The subnetwork name/path for the node pool. Format: * projects/{project}/regions/{region}/subnetworks/{subnetwork} If the cluster is associated with - * multiple subnetworks, the subnetwork can be either: 1. A user supplied subnetwork name/full - * path during node pool creation. Example1: my-subnet Example2: projects/gke-project/regions/us- - * central1/subnetworks/my-subnet 2. A subnetwork path picked based on the IP utilization during - * node pool creation and is immutable. + * multiple subnetworks, the subnetwork can be either: - A user supplied subnetwork name during + * node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, + * start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a + * number. - A full subnetwork path during node pool creation, such as `projects/gke- + * project/regions/us-central1/subnetworks/my-subnet` - A subnetwork path picked based on the IP + * utilization during node pool creation and is immutable. * @return value or {@code null} for none */ public java.lang.String getSubnetwork() { @@ -385,10 +389,12 @@ public java.lang.String getSubnetwork() { /** * Optional. The subnetwork name/path for the node pool. Format: * projects/{project}/regions/{region}/subnetworks/{subnetwork} If the cluster is associated with - * multiple subnetworks, the subnetwork can be either: 1. A user supplied subnetwork name/full - * path during node pool creation. Example1: my-subnet Example2: projects/gke-project/regions/us- - * central1/subnetworks/my-subnet 2. A subnetwork path picked based on the IP utilization during - * node pool creation and is immutable. + * multiple subnetworks, the subnetwork can be either: - A user supplied subnetwork name during + * node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, + * start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a + * number. - A full subnetwork path during node pool creation, such as `projects/gke- + * project/regions/us-central1/subnetworks/my-subnet` - A subnetwork path picked based on the IP + * utilization during node pool creation and is immutable. * @param subnetwork subnetwork or {@code null} for none */ public NodeNetworkConfig setSubnetwork(java.lang.String subnetwork) { 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 a96b847b736..d13014d0404 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 @@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 CrashLoopBackOffConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum + * 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum. + * The string must be a sequence of decimal numbers, each with optional fraction and a unit + * suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". See + * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container- + * restart-delay for more details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maxContainerRestartPeriod; + + /** + * Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum + * 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum. + * The string must be a sequence of decimal numbers, each with optional fraction and a unit + * suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". See + * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container- + * restart-delay for more details. + * @return value or {@code null} for none + */ + public java.lang.String getMaxContainerRestartPeriod() { + return maxContainerRestartPeriod; + } + + /** + * Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum + * 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum. + * The string must be a sequence of decimal numbers, each with optional fraction and a unit + * suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". See + * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container- + * restart-delay for more details. + * @param maxContainerRestartPeriod maxContainerRestartPeriod or {@code null} for none + */ + public CrashLoopBackOffConfig setMaxContainerRestartPeriod(java.lang.String maxContainerRestartPeriod) { + this.maxContainerRestartPeriod = maxContainerRestartPeriod; + return this; + } + + @Override + public CrashLoopBackOffConfig set(String fieldName, Object value) { + return (CrashLoopBackOffConfig) super.set(fieldName, value); + } + + @Override + public CrashLoopBackOffConfig clone() { + return (CrashLoopBackOffConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/DisruptionBudget.java b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/DisruptionBudget.java new file mode 100644 index 00000000000..f389f82c06f --- /dev/null +++ b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/DisruptionBudget.java @@ -0,0 +1,139 @@ +/* + * 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.v1beta1.model; + +/** + * DisruptionBudget defines the upgrade disruption budget for the cluster control plane. + * + *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 DisruptionBudget extends com.google.api.client.json.GenericJson { + + /** + * Output only. The last time a disruption was performed on the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastDisruptionTime; + + /** + * Output only. The last time a minor version upgrade was performed on the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastMinorVersionDisruptionTime; + + /** + * Optional. The minimum duration between two minor version upgrades of the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String minorVersionDisruptionInterval; + + /** + * Optional. The minimum duration between two patch version upgrades of the control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String patchVersionDisruptionInterval; + + /** + * Output only. The last time a disruption was performed on the control plane. + * @return value or {@code null} for none + */ + public String getLastDisruptionTime() { + return lastDisruptionTime; + } + + /** + * Output only. The last time a disruption was performed on the control plane. + * @param lastDisruptionTime lastDisruptionTime or {@code null} for none + */ + public DisruptionBudget setLastDisruptionTime(String lastDisruptionTime) { + this.lastDisruptionTime = lastDisruptionTime; + return this; + } + + /** + * Output only. The last time a minor version upgrade was performed on the control plane. + * @return value or {@code null} for none + */ + public String getLastMinorVersionDisruptionTime() { + return lastMinorVersionDisruptionTime; + } + + /** + * Output only. The last time a minor version upgrade was performed on the control plane. + * @param lastMinorVersionDisruptionTime lastMinorVersionDisruptionTime or {@code null} for none + */ + public DisruptionBudget setLastMinorVersionDisruptionTime(String lastMinorVersionDisruptionTime) { + this.lastMinorVersionDisruptionTime = lastMinorVersionDisruptionTime; + return this; + } + + /** + * Optional. The minimum duration between two minor version upgrades of the control plane. + * @return value or {@code null} for none + */ + public String getMinorVersionDisruptionInterval() { + return minorVersionDisruptionInterval; + } + + /** + * Optional. The minimum duration between two minor version upgrades of the control plane. + * @param minorVersionDisruptionInterval minorVersionDisruptionInterval or {@code null} for none + */ + public DisruptionBudget setMinorVersionDisruptionInterval(String minorVersionDisruptionInterval) { + this.minorVersionDisruptionInterval = minorVersionDisruptionInterval; + return this; + } + + /** + * Optional. The minimum duration between two patch version upgrades of the control plane. + * @return value or {@code null} for none + */ + public String getPatchVersionDisruptionInterval() { + return patchVersionDisruptionInterval; + } + + /** + * Optional. The minimum duration between two patch version upgrades of the control plane. + * @param patchVersionDisruptionInterval patchVersionDisruptionInterval or {@code null} for none + */ + public DisruptionBudget setPatchVersionDisruptionInterval(String patchVersionDisruptionInterval) { + this.patchVersionDisruptionInterval = patchVersionDisruptionInterval; + return this; + } + + @Override + public DisruptionBudget set(String fieldName, Object value) { + return (DisruptionBudget) super.set(fieldName, value); + } + + @Override + public DisruptionBudget clone() { + return (DisruptionBudget) super.clone(); + } + +} diff --git a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/MaintenancePolicy.java b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/MaintenancePolicy.java index 83c5e8ac5da..f1987c35492 100644 --- a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/MaintenancePolicy.java +++ b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/MaintenancePolicy.java @@ -30,6 +30,13 @@ @SuppressWarnings("javadoc") public final class MaintenancePolicy extends com.google.api.client.json.GenericJson { + /** + * Optional. The upgrade disruption budget for the cluster control plane. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DisruptionBudget disruptionBudget; + /** * A hash identifying the version of this policy, so that updates to fields of the policy won't * accidentally undo intermediate changes (and so that users of the API unaware of some fields @@ -47,6 +54,23 @@ public final class MaintenancePolicy extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private MaintenanceWindow window; + /** + * Optional. The upgrade disruption budget for the cluster control plane. + * @return value or {@code null} for none + */ + public DisruptionBudget getDisruptionBudget() { + return disruptionBudget; + } + + /** + * Optional. The upgrade disruption budget for the cluster control plane. + * @param disruptionBudget disruptionBudget or {@code null} for none + */ + public MaintenancePolicy setDisruptionBudget(DisruptionBudget disruptionBudget) { + this.disruptionBudget = disruptionBudget; + return this; + } + /** * A hash identifying the version of this policy, so that updates to fields of the policy won't * accidentally undo intermediate changes (and so that users of the API unaware of some fields diff --git a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeKubeletConfig.java b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeKubeletConfig.java index 06aafc6572f..84621c83cf5 100644 --- a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeKubeletConfig.java +++ b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeKubeletConfig.java @@ -97,6 +97,14 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private java.lang.String cpuManagerPolicy; + /** + * Optional. Contains configuration options to modify node-level parameters for container restart + * behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CrashLoopBackOffConfig crashLoopBackOff; + /** * Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace period (in * seconds) to use when terminating pods in response to a soft eviction threshold being met. This @@ -211,6 +219,28 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long podPidsLimit; + /** + * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in + * seconds) used to terminate critical pods during a node shutdown. This value should be <= + * shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer shutdownGracePeriodCriticalPodsSeconds; + + /** + * Optional. shutdown_grace_period_seconds is the maximum allowed grace period (in seconds) the + * total duration that the node should delay the shutdown during a graceful shutdown. This is the + * total grace period for pod termination for both regular and critical pods. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ If set to 0, node + * will not enable the graceful node shutdown functionality. This field is only valid for Spot + * VMs. Allowed values: 0, 30, 120. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer shutdownGracePeriodSeconds; + /** * Optional. Defines whether to enable single process OOM killer. If true, will prevent the * memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes @@ -380,6 +410,25 @@ public NodeKubeletConfig setCpuManagerPolicy(java.lang.String cpuManagerPolicy) return this; } + /** + * Optional. Contains configuration options to modify node-level parameters for container restart + * behavior. + * @return value or {@code null} for none + */ + public CrashLoopBackOffConfig getCrashLoopBackOff() { + return crashLoopBackOff; + } + + /** + * Optional. Contains configuration options to modify node-level parameters for container restart + * behavior. + * @param crashLoopBackOff crashLoopBackOff or {@code null} for none + */ + public NodeKubeletConfig setCrashLoopBackOff(CrashLoopBackOffConfig crashLoopBackOff) { + this.crashLoopBackOff = crashLoopBackOff; + return this; + } + /** * Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace period (in * seconds) to use when terminating pods in response to a soft eviction threshold being met. This @@ -644,6 +693,56 @@ public NodeKubeletConfig setPodPidsLimit(java.lang.Long podPidsLimit) { return this; } + /** + * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in + * seconds) used to terminate critical pods during a node shutdown. This value should be <= + * shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. + * @return value or {@code null} for none + */ + public java.lang.Integer getShutdownGracePeriodCriticalPodsSeconds() { + return shutdownGracePeriodCriticalPodsSeconds; + } + + /** + * Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed grace period (in + * seconds) used to terminate critical pods during a node shutdown. This value should be <= + * shutdown_grace_period_seconds, and is only valid if shutdown_grace_period_seconds is set. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ Range: [0, 120]. + * @param shutdownGracePeriodCriticalPodsSeconds shutdownGracePeriodCriticalPodsSeconds or {@code null} for none + */ + public NodeKubeletConfig setShutdownGracePeriodCriticalPodsSeconds(java.lang.Integer shutdownGracePeriodCriticalPodsSeconds) { + this.shutdownGracePeriodCriticalPodsSeconds = shutdownGracePeriodCriticalPodsSeconds; + return this; + } + + /** + * Optional. shutdown_grace_period_seconds is the maximum allowed grace period (in seconds) the + * total duration that the node should delay the shutdown during a graceful shutdown. This is the + * total grace period for pod termination for both regular and critical pods. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ If set to 0, node + * will not enable the graceful node shutdown functionality. This field is only valid for Spot + * VMs. Allowed values: 0, 30, 120. + * @return value or {@code null} for none + */ + public java.lang.Integer getShutdownGracePeriodSeconds() { + return shutdownGracePeriodSeconds; + } + + /** + * Optional. shutdown_grace_period_seconds is the maximum allowed grace period (in seconds) the + * total duration that the node should delay the shutdown during a graceful shutdown. This is the + * total grace period for pod termination for both regular and critical pods. + * https://kubernetes.io/docs/concepts/cluster-administration/node-shutdown/ If set to 0, node + * will not enable the graceful node shutdown functionality. This field is only valid for Spot + * VMs. Allowed values: 0, 30, 120. + * @param shutdownGracePeriodSeconds shutdownGracePeriodSeconds or {@code null} for none + */ + public NodeKubeletConfig setShutdownGracePeriodSeconds(java.lang.Integer shutdownGracePeriodSeconds) { + this.shutdownGracePeriodSeconds = shutdownGracePeriodSeconds; + return this; + } + /** * Optional. Defines whether to enable single process OOM killer. If true, will prevent the * memory.oom.group flag from being set for container cgroups in cgroups v2. This causes processes diff --git a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeNetworkConfig.java b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeNetworkConfig.java index ccca843d5ef..699a29786a5 100644 --- a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeNetworkConfig.java +++ b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/NodeNetworkConfig.java @@ -149,10 +149,12 @@ public final class NodeNetworkConfig extends com.google.api.client.json.GenericJ /** * Optional. The subnetwork name/path for the node pool. Format: * projects/{project}/regions/{region}/subnetworks/{subnetwork} If the cluster is associated with - * multiple subnetworks, the subnetwork can be either: 1. A user supplied subnetwork name/full - * path during node pool creation. Example1: my-subnet Example2: projects/gke-project/regions/us- - * central1/subnetworks/my-subnet 2. A subnetwork path picked based on the IP utilization during - * node pool creation and is immutable. + * multiple subnetworks, the subnetwork can be either: - A user supplied subnetwork name during + * node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, + * start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a + * number. - A full subnetwork path during node pool creation, such as `projects/gke- + * project/regions/us-central1/subnetworks/my-subnet` - A subnetwork path picked based on the IP + * utilization during node pool creation and is immutable. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -402,10 +404,12 @@ public NodeNetworkConfig setPodRange(java.lang.String podRange) { /** * Optional. The subnetwork name/path for the node pool. Format: * projects/{project}/regions/{region}/subnetworks/{subnetwork} If the cluster is associated with - * multiple subnetworks, the subnetwork can be either: 1. A user supplied subnetwork name/full - * path during node pool creation. Example1: my-subnet Example2: projects/gke-project/regions/us- - * central1/subnetworks/my-subnet 2. A subnetwork path picked based on the IP utilization during - * node pool creation and is immutable. + * multiple subnetworks, the subnetwork can be either: - A user supplied subnetwork name during + * node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, + * start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a + * number. - A full subnetwork path during node pool creation, such as `projects/gke- + * project/regions/us-central1/subnetworks/my-subnet` - A subnetwork path picked based on the IP + * utilization during node pool creation and is immutable. * @return value or {@code null} for none */ public java.lang.String getSubnetwork() { @@ -415,10 +419,12 @@ public java.lang.String getSubnetwork() { /** * Optional. The subnetwork name/path for the node pool. Format: * projects/{project}/regions/{region}/subnetworks/{subnetwork} If the cluster is associated with - * multiple subnetworks, the subnetwork can be either: 1. A user supplied subnetwork name/full - * path during node pool creation. Example1: my-subnet Example2: projects/gke-project/regions/us- - * central1/subnetworks/my-subnet 2. A subnetwork path picked based on the IP utilization during - * node pool creation and is immutable. + * multiple subnetworks, the subnetwork can be either: - A user supplied subnetwork name during + * node pool creation (e.g., `my-subnet`). The name must be between 1 and 63 characters long, + * start with a letter, contain only letters, numbers, and hyphens, and end with a letter or a + * number. - A full subnetwork path during node pool creation, such as `projects/gke- + * project/regions/us-central1/subnetworks/my-subnet` - A subnetwork path picked based on the IP + * utilization during node pool creation and is immutable. * @param subnetwork subnetwork or {@code null} for none */ public NodeNetworkConfig setSubnetwork(java.lang.String subnetwork) { diff --git a/clients/google-api-services-container/v1beta1/2.0.0/pom.xml b/clients/google-api-services-container/v1beta1/2.0.0/pom.xml index 0d1878059b2..bfc94e8de04 100644 --- a/clients/google-api-services-container/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-container/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@