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 cbf03742fe0..373b2735a76 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 diff --git a/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/ReservedResourcesConfig.java b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/ReservedResourcesConfig.java new file mode 100644 index 00000000000..7693ad7843b --- /dev/null +++ b/clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/ReservedResourcesConfig.java @@ -0,0 +1,157 @@ +/* + * 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; + +/** + * ReservedResourcesConfig contains the configuration for the reserved resources on the node. + * + *
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 ReservedResourcesConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If + * unspecified, GKE decides the default based on node version using different formula. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long cpuReservedMillicore; + + /** + * Output only. The effective amount of CPU reserved for system daemons. If + * `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default + * is applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long effectiveCpuReservedMillicore; + + /** + * Output only. The effective amount of memory reserved for system daemons. If + * `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default + * is applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long effectiveMemoryReservedMib; + + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified + * value. If unspecified, GKE decides the default based on node version using different formula. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long memoryReservedMib; + + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If + * unspecified, GKE decides the default based on node version using different formula. + * @return value or {@code null} for none + */ + public java.lang.Long getCpuReservedMillicore() { + return cpuReservedMillicore; + } + + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If + * unspecified, GKE decides the default based on node version using different formula. + * @param cpuReservedMillicore cpuReservedMillicore or {@code null} for none + */ + public ReservedResourcesConfig setCpuReservedMillicore(java.lang.Long cpuReservedMillicore) { + this.cpuReservedMillicore = cpuReservedMillicore; + return this; + } + + /** + * Output only. The effective amount of CPU reserved for system daemons. If + * `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default + * is applied. + * @return value or {@code null} for none + */ + public java.lang.Long getEffectiveCpuReservedMillicore() { + return effectiveCpuReservedMillicore; + } + + /** + * Output only. The effective amount of CPU reserved for system daemons. If + * `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default + * is applied. + * @param effectiveCpuReservedMillicore effectiveCpuReservedMillicore or {@code null} for none + */ + public ReservedResourcesConfig setEffectiveCpuReservedMillicore(java.lang.Long effectiveCpuReservedMillicore) { + this.effectiveCpuReservedMillicore = effectiveCpuReservedMillicore; + return this; + } + + /** + * Output only. The effective amount of memory reserved for system daemons. If + * `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default + * is applied. + * @return value or {@code null} for none + */ + public java.lang.Long getEffectiveMemoryReservedMib() { + return effectiveMemoryReservedMib; + } + + /** + * Output only. The effective amount of memory reserved for system daemons. If + * `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default + * is applied. + * @param effectiveMemoryReservedMib effectiveMemoryReservedMib or {@code null} for none + */ + public ReservedResourcesConfig setEffectiveMemoryReservedMib(java.lang.Long effectiveMemoryReservedMib) { + this.effectiveMemoryReservedMib = effectiveMemoryReservedMib; + return this; + } + + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified + * value. If unspecified, GKE decides the default based on node version using different formula. + * @return value or {@code null} for none + */ + public java.lang.Long getMemoryReservedMib() { + return memoryReservedMib; + } + + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified + * value. If unspecified, GKE decides the default based on node version using different formula. + * @param memoryReservedMib memoryReservedMib or {@code null} for none + */ + public ReservedResourcesConfig setMemoryReservedMib(java.lang.Long memoryReservedMib) { + this.memoryReservedMib = memoryReservedMib; + return this; + } + + @Override + public ReservedResourcesConfig set(String fieldName, Object value) { + return (ReservedResourcesConfig) super.set(fieldName, value); + } + + @Override + public ReservedResourcesConfig clone() { + return (ReservedResourcesConfig) 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 91e5fd418e8..6804b63ce51 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 diff --git a/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/ReservedResourcesConfig.java b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/ReservedResourcesConfig.java new file mode 100644 index 00000000000..e51bef9bb81 --- /dev/null +++ b/clients/google-api-services-container/v1beta1/2.0.0/com/google/api/services/container/v1beta1/model/ReservedResourcesConfig.java @@ -0,0 +1,157 @@ +/* + * 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; + +/** + * ReservedResourcesConfig contains the configuration for the reserved resources on the node. + * + *
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 ReservedResourcesConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If + * unspecified, GKE decides the default based on node version using different formula. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long cpuReservedMillicore; + + /** + * Output only. The effective amount of CPU reserved for system daemons. If + * `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default + * is applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long effectiveCpuReservedMillicore; + + /** + * Output only. The effective amount of memory reserved for system daemons. If + * `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default + * is applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long effectiveMemoryReservedMib; + + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified + * value. If unspecified, GKE decides the default based on node version using different formula. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long memoryReservedMib; + + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If + * unspecified, GKE decides the default based on node version using different formula. + * @return value or {@code null} for none + */ + public java.lang.Long getCpuReservedMillicore() { + return cpuReservedMillicore; + } + + /** + * Optional. The amount of CPU to reserve for system daemons. This is a user-specified value. If + * unspecified, GKE decides the default based on node version using different formula. + * @param cpuReservedMillicore cpuReservedMillicore or {@code null} for none + */ + public ReservedResourcesConfig setCpuReservedMillicore(java.lang.Long cpuReservedMillicore) { + this.cpuReservedMillicore = cpuReservedMillicore; + return this; + } + + /** + * Output only. The effective amount of CPU reserved for system daemons. If + * `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default + * is applied. + * @return value or {@code null} for none + */ + public java.lang.Long getEffectiveCpuReservedMillicore() { + return effectiveCpuReservedMillicore; + } + + /** + * Output only. The effective amount of CPU reserved for system daemons. If + * `cpu_reserved_millicore` is specified, user-specified value is used. Otherwise the GKE default + * is applied. + * @param effectiveCpuReservedMillicore effectiveCpuReservedMillicore or {@code null} for none + */ + public ReservedResourcesConfig setEffectiveCpuReservedMillicore(java.lang.Long effectiveCpuReservedMillicore) { + this.effectiveCpuReservedMillicore = effectiveCpuReservedMillicore; + return this; + } + + /** + * Output only. The effective amount of memory reserved for system daemons. If + * `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default + * is applied. + * @return value or {@code null} for none + */ + public java.lang.Long getEffectiveMemoryReservedMib() { + return effectiveMemoryReservedMib; + } + + /** + * Output only. The effective amount of memory reserved for system daemons. If + * `memory_reserved_mib` is specified, the user-specified value is used. Otherwise the GKE default + * is applied. + * @param effectiveMemoryReservedMib effectiveMemoryReservedMib or {@code null} for none + */ + public ReservedResourcesConfig setEffectiveMemoryReservedMib(java.lang.Long effectiveMemoryReservedMib) { + this.effectiveMemoryReservedMib = effectiveMemoryReservedMib; + return this; + } + + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified + * value. If unspecified, GKE decides the default based on node version using different formula. + * @return value or {@code null} for none + */ + public java.lang.Long getMemoryReservedMib() { + return memoryReservedMib; + } + + /** + * Optional. The amount of memory to reserve for system daemons (in MiB). This is a user-specified + * value. If unspecified, GKE decides the default based on node version using different formula. + * @param memoryReservedMib memoryReservedMib or {@code null} for none + */ + public ReservedResourcesConfig setMemoryReservedMib(java.lang.Long memoryReservedMib) { + this.memoryReservedMib = memoryReservedMib; + return this; + } + + @Override + public ReservedResourcesConfig set(String fieldName, Object value) { + return (ReservedResourcesConfig) super.set(fieldName, value); + } + + @Override + public ReservedResourcesConfig clone() { + return (ReservedResourcesConfig) super.clone(); + } + +} 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 29b4e931975..eae955e96da 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 @@