diff --git a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1alpha2IssuerStatusConditions.java b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1alpha2IssuerStatusConditions.java index 1c3148e6f8..b99af8b7ab 100644 --- a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1alpha2IssuerStatusConditions.java +++ b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1alpha2IssuerStatusConditions.java @@ -20,8 +20,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** IssuerCondition contains condition information for an Issuer. */ @ApiModel(description = "IssuerCondition contains condition information for an Issuer.") @@ -32,7 +32,7 @@ public class V1alpha2IssuerStatusConditions { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -102,7 +102,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1alpha2IssuerStatusConditions lastTransitionTime(DateTime lastTransitionTime) { + public V1alpha2IssuerStatusConditions lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -117,11 +117,11 @@ public V1alpha2IssuerStatusConditions lastTransitionTime(DateTime lastTransition @ApiModelProperty( value = "LastTransitionTime is the timestamp corresponding to the last status change of this condition.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatus.java b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatus.java index ea143c94b4..ef1d7006a5 100644 --- a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatus.java +++ b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatus.java @@ -15,11 +15,11 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** Status of the CertificateRequest. This is set and managed automatically. */ @ApiModel(description = "Status of the CertificateRequest. This is set and managed automatically.") @@ -45,7 +45,7 @@ public class V1beta1CertificateRequestStatus { public static final String SERIALIZED_NAME_FAILURE_TIME = "failureTime"; @SerializedName(SERIALIZED_NAME_FAILURE_TIME) - private DateTime failureTime; + private OffsetDateTime failureTime; public V1beta1CertificateRequestStatus ca(byte[] ca) { @@ -131,7 +131,7 @@ public void setConditions(List condit this.conditions = conditions; } - public V1beta1CertificateRequestStatus failureTime(DateTime failureTime) { + public V1beta1CertificateRequestStatus failureTime(OffsetDateTime failureTime) { this.failureTime = failureTime; return this; @@ -147,11 +147,11 @@ public V1beta1CertificateRequestStatus failureTime(DateTime failureTime) { @ApiModelProperty( value = "FailureTime stores the time that this CertificateRequest failed. This is used to influence garbage collection and back-off.") - public DateTime getFailureTime() { + public OffsetDateTime getFailureTime() { return failureTime; } - public void setFailureTime(DateTime failureTime) { + public void setFailureTime(OffsetDateTime failureTime) { this.failureTime = failureTime; } diff --git a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatusConditions.java b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatusConditions.java index a3880d5fc9..7811ef5b65 100644 --- a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatusConditions.java +++ b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateRequestStatusConditions.java @@ -20,8 +20,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** CertificateRequestCondition contains condition information for a CertificateRequest. */ @ApiModel( @@ -34,7 +34,7 @@ public class V1beta1CertificateRequestStatusConditions { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -104,7 +104,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1beta1CertificateRequestStatusConditions lastTransitionTime(DateTime lastTransitionTime) { + public V1beta1CertificateRequestStatusConditions lastTransitionTime( + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -119,11 +120,11 @@ public V1beta1CertificateRequestStatusConditions lastTransitionTime(DateTime las @ApiModelProperty( value = "LastTransitionTime is the timestamp corresponding to the last status change of this condition.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatus.java b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatus.java index d910141d27..ae83e0aa81 100644 --- a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatus.java +++ b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatus.java @@ -15,10 +15,10 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** Status of the Certificate. This is set and managed automatically. */ @ApiModel(description = "Status of the Certificate. This is set and managed automatically.") @@ -34,7 +34,7 @@ public class V1beta1CertificateStatus { public static final String SERIALIZED_NAME_LAST_FAILURE_TIME = "lastFailureTime"; @SerializedName(SERIALIZED_NAME_LAST_FAILURE_TIME) - private DateTime lastFailureTime; + private OffsetDateTime lastFailureTime; public static final String SERIALIZED_NAME_NEXT_PRIVATE_KEY_SECRET_NAME = "nextPrivateKeySecretName"; @@ -45,17 +45,17 @@ public class V1beta1CertificateStatus { public static final String SERIALIZED_NAME_NOT_AFTER = "notAfter"; @SerializedName(SERIALIZED_NAME_NOT_AFTER) - private DateTime notAfter; + private OffsetDateTime notAfter; public static final String SERIALIZED_NAME_NOT_BEFORE = "notBefore"; @SerializedName(SERIALIZED_NAME_NOT_BEFORE) - private DateTime notBefore; + private OffsetDateTime notBefore; public static final String SERIALIZED_NAME_RENEWAL_TIME = "renewalTime"; @SerializedName(SERIALIZED_NAME_RENEWAL_TIME) - private DateTime renewalTime; + private OffsetDateTime renewalTime; public static final String SERIALIZED_NAME_REVISION = "revision"; @@ -95,7 +95,7 @@ public void setConditions(List conditions) { this.conditions = conditions; } - public V1beta1CertificateStatus lastFailureTime(DateTime lastFailureTime) { + public V1beta1CertificateStatus lastFailureTime(OffsetDateTime lastFailureTime) { this.lastFailureTime = lastFailureTime; return this; @@ -112,11 +112,11 @@ public V1beta1CertificateStatus lastFailureTime(DateTime lastFailureTime) { @ApiModelProperty( value = "LastFailureTime is the time as recorded by the Certificate controller of the most recent failure to complete a CertificateRequest for this Certificate resource. If set, cert-manager will not re-request another Certificate until 1 hour has elapsed from this time.") - public DateTime getLastFailureTime() { + public OffsetDateTime getLastFailureTime() { return lastFailureTime; } - public void setLastFailureTime(DateTime lastFailureTime) { + public void setLastFailureTime(OffsetDateTime lastFailureTime) { this.lastFailureTime = lastFailureTime; } @@ -146,7 +146,7 @@ public void setNextPrivateKeySecretName(String nextPrivateKeySecretName) { this.nextPrivateKeySecretName = nextPrivateKeySecretName; } - public V1beta1CertificateStatus notAfter(DateTime notAfter) { + public V1beta1CertificateStatus notAfter(OffsetDateTime notAfter) { this.notAfter = notAfter; return this; @@ -162,15 +162,15 @@ public V1beta1CertificateStatus notAfter(DateTime notAfter) { @ApiModelProperty( value = "The expiration time of the certificate stored in the secret named by this resource in `spec.secretName`.") - public DateTime getNotAfter() { + public OffsetDateTime getNotAfter() { return notAfter; } - public void setNotAfter(DateTime notAfter) { + public void setNotAfter(OffsetDateTime notAfter) { this.notAfter = notAfter; } - public V1beta1CertificateStatus notBefore(DateTime notBefore) { + public V1beta1CertificateStatus notBefore(OffsetDateTime notBefore) { this.notBefore = notBefore; return this; @@ -186,15 +186,15 @@ public V1beta1CertificateStatus notBefore(DateTime notBefore) { @ApiModelProperty( value = "The time after which the certificate stored in the secret named by this resource in spec.secretName is valid.") - public DateTime getNotBefore() { + public OffsetDateTime getNotBefore() { return notBefore; } - public void setNotBefore(DateTime notBefore) { + public void setNotBefore(OffsetDateTime notBefore) { this.notBefore = notBefore; } - public V1beta1CertificateStatus renewalTime(DateTime renewalTime) { + public V1beta1CertificateStatus renewalTime(OffsetDateTime renewalTime) { this.renewalTime = renewalTime; return this; @@ -210,11 +210,11 @@ public V1beta1CertificateStatus renewalTime(DateTime renewalTime) { @ApiModelProperty( value = "RenewalTime is the time at which the certificate will be next renewed. If not set, no upcoming renewal is scheduled.") - public DateTime getRenewalTime() { + public OffsetDateTime getRenewalTime() { return renewalTime; } - public void setRenewalTime(DateTime renewalTime) { + public void setRenewalTime(OffsetDateTime renewalTime) { this.renewalTime = renewalTime; } diff --git a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatusConditions.java b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatusConditions.java index 9b2e35d5b8..539c169227 100644 --- a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatusConditions.java +++ b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1CertificateStatusConditions.java @@ -20,8 +20,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** CertificateCondition contains condition information for an Certificate. */ @ApiModel(description = "CertificateCondition contains condition information for an Certificate.") @@ -32,7 +32,7 @@ public class V1beta1CertificateStatusConditions { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -102,7 +102,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1beta1CertificateStatusConditions lastTransitionTime(DateTime lastTransitionTime) { + public V1beta1CertificateStatusConditions lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -117,11 +117,11 @@ public V1beta1CertificateStatusConditions lastTransitionTime(DateTime lastTransi @ApiModelProperty( value = "LastTransitionTime is the timestamp corresponding to the last status change of this condition.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1OrderStatus.java b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1OrderStatus.java index 4778a21da5..3231ee380d 100644 --- a/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1OrderStatus.java +++ b/client-java-contrib/cert-manager/src/main/java/io/cert/manager/models/V1beta1OrderStatus.java @@ -19,11 +19,11 @@ import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** V1beta1OrderStatus */ @javax.annotation.Generated( @@ -43,7 +43,7 @@ public class V1beta1OrderStatus { public static final String SERIALIZED_NAME_FAILURE_TIME = "failureTime"; @SerializedName(SERIALIZED_NAME_FAILURE_TIME) - private DateTime failureTime; + private OffsetDateTime failureTime; public static final String SERIALIZED_NAME_FINALIZE_U_R_L = "finalizeURL"; @@ -182,7 +182,7 @@ public void setCertificate(byte[] certificate) { this.certificate = certificate; } - public V1beta1OrderStatus failureTime(DateTime failureTime) { + public V1beta1OrderStatus failureTime(OffsetDateTime failureTime) { this.failureTime = failureTime; return this; @@ -198,11 +198,11 @@ public V1beta1OrderStatus failureTime(DateTime failureTime) { @ApiModelProperty( value = "FailureTime stores the time that this order failed. This is used to influence garbage collection and back-off.") - public DateTime getFailureTime() { + public OffsetDateTime getFailureTime() { return failureTime; } - public void setFailureTime(DateTime failureTime) { + public void setFailureTime(OffsetDateTime failureTime) { this.failureTime = failureTime; } diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java index 28fa1e8658..f9dc2ba2da 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** PersistentVolumeClaimCondition contails details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contails details about state of pvc") @@ -27,12 +27,12 @@ public class V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) - private DateTime lastProbeTime; + private OffsetDateTime lastProbeTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -55,7 +55,7 @@ public class V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions { private String type; public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions lastProbeTime( - DateTime lastProbeTime) { + OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return this; @@ -68,16 +68,16 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions lastProbeTime */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time we probed the condition.") - public DateTime getLastProbeTime() { + public OffsetDateTime getLastProbeTime() { return lastProbeTime; } - public void setLastProbeTime(DateTime lastProbeTime) { + public void setLastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions lastTransitionTime( - DateTime lastTransitionTime) { + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -90,11 +90,11 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions lastTransitio */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java b/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java index e2e3263b77..d9908c4715 100644 --- a/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java +++ b/e2e/src/test/java/io/kubernetes/client/e2e/extended/leaderelection/LeaderElectorTest.java @@ -26,6 +26,7 @@ import java.io.IOException; import java.net.HttpURLConnection; import java.time.Duration; +import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -34,7 +35,6 @@ import java.util.concurrent.CyclicBarrier; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; -import org.joda.time.format.*; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -78,30 +78,6 @@ public LeaderElectorTest(LockType lockType) { throw new RuntimeException("Couldn't create ApiClient", ex); } this.lockType = lockType; - - // Lease resource requires special care with DateTime - if (lockType == LockType.Lease) { - // TODO: switch date-time library so that micro-sec timestamp can be serialized in RFC3339 - // format w/ correct precision without the hacks - - // This formatter is used for Lease resource spec's acquire/renewTime - DateTimeFormatter isoWithFractionalMicroSecsFormatter = - DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'"); - - DateTimeFormatter formatter = - new DateTimeFormatterBuilder() - .append( - isoWithFractionalMicroSecsFormatter.getPrinter(), - new DateTimeParser[] { - isoWithFractionalMicroSecsFormatter.getParser(), - // need this one to parse "creationTimestamp" format e.g. "2020-12-30T09:29:13Z" - // in Lease resource returned from server - ISODateTimeFormat.dateOptionalTimeParser().getParser(), - }) - .toFormatter(); - - apiClient.setDateTimeFormat(formatter); - } } @Before diff --git a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventAggregator.java b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventAggregator.java index 35e2845db4..07dba884ba 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventAggregator.java +++ b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventAggregator.java @@ -18,11 +18,11 @@ import io.kubernetes.client.openapi.models.CoreV1Event; import io.kubernetes.client.openapi.models.CoreV1EventBuilder; import io.kubernetes.client.openapi.models.V1ObjectMetaBuilder; +import java.time.OffsetDateTime; import java.util.HashSet; import java.util.Objects; import java.util.Set; import org.apache.commons.lang3.tuple.MutablePair; -import org.joda.time.DateTime; public class EventAggregator { @@ -51,7 +51,7 @@ public EventAggregator( private final int maxEvents; public synchronized MutablePair aggregate(CoreV1Event event) { - DateTime now = DateTime.now(); + OffsetDateTime now = OffsetDateTime.now(); MutablePair aggregatedKeys = keyFunc.apply(event); String aggregatedKey = aggregatedKeys.getLeft(); @@ -84,7 +84,7 @@ public synchronized MutablePair aggregate(CoreV1Event event private static class AggregatedRecord { private Set localKeys = new HashSet<>(); - private DateTime lastTimestamp; + private OffsetDateTime lastTimestamp; @Override public boolean equals(Object o) { diff --git a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventLogger.java b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventLogger.java index 282d76d0dc..f48d82d375 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventLogger.java +++ b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventLogger.java @@ -17,9 +17,9 @@ import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.models.CoreV1Event; +import java.time.OffsetDateTime; import java.util.function.Function; import org.apache.commons.lang3.tuple.MutablePair; -import org.joda.time.DateTime; public class EventLogger { public EventLogger(int lruCacheEntries, Function eventKeyFunc) { @@ -31,7 +31,7 @@ public EventLogger(int lruCacheEntries, Function eventKeyFu private Function eventKeyFunc; public MutablePair observe(CoreV1Event event, String key) { - DateTime now = DateTime.now(); + OffsetDateTime now = OffsetDateTime.now(); EventLog lastObserved = this.eventCache.getIfPresent(key); V1Patch patch = null; if (lastObserved != null && lastObserved.count != null && lastObserved.count > 0) { @@ -69,7 +69,7 @@ public void updateState(CoreV1Event event) { private static class EventLog { private Integer count; - private DateTime firstTimestamp; + private OffsetDateTime firstTimestamp; private String name; private String resourceVersion; } diff --git a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventUtils.java b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventUtils.java index acd70ca4e5..e6d630c5af 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventUtils.java +++ b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/EventUtils.java @@ -13,13 +13,13 @@ package io.kubernetes.client.extended.event.legacy; import io.kubernetes.client.openapi.models.CoreV1Event; +import java.time.OffsetDateTime; import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.tuple.MutablePair; -import org.joda.time.DateTime; public class EventUtils { - public static String generateName(String referencedObjectName, DateTime timestamp) { + public static String generateName(String referencedObjectName, OffsetDateTime timestamp) { return referencedObjectName + "." + RandomStringUtils.randomAlphanumeric(12); } diff --git a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/ObjectReferenceResolvingEventRecorder.java b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/ObjectReferenceResolvingEventRecorder.java index c006392018..7fa2eb6c53 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/event/legacy/ObjectReferenceResolvingEventRecorder.java +++ b/extended/src/main/java/io/kubernetes/client/extended/event/legacy/ObjectReferenceResolvingEventRecorder.java @@ -22,11 +22,11 @@ import io.kubernetes.client.openapi.models.V1ObjectReference; import io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder; import io.kubernetes.client.util.Strings; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.concurrent.BlockingQueue; import java.util.concurrent.TimeUnit; -import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -109,7 +109,7 @@ private void generateEvent( } // build event - DateTime now = DateTime.now(); + OffsetDateTime now = OffsetDateTime.now(); CoreV1Event event = new CoreV1EventBuilder() .withMetadata( diff --git a/extended/src/main/java/io/kubernetes/client/extended/leaderelection/resourcelock/LeaseLock.java b/extended/src/main/java/io/kubernetes/client/extended/leaderelection/resourcelock/LeaseLock.java index b1f7486c0e..0caa3261cc 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/leaderelection/resourcelock/LeaseLock.java +++ b/extended/src/main/java/io/kubernetes/client/extended/leaderelection/resourcelock/LeaseLock.java @@ -22,9 +22,12 @@ import io.kubernetes.client.openapi.models.V1LeaseSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; import java.net.HttpURLConnection; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; import java.util.Collections; +import java.util.Date; import java.util.concurrent.atomic.AtomicReference; -import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -120,10 +123,10 @@ public String describe() { private LeaderElectionRecord getRecordFromLease(V1LeaseSpec lease) { LeaderElectionRecord record = new LeaderElectionRecord(); if (lease.getAcquireTime() != null) { - record.setAcquireTime(lease.getAcquireTime().toDate()); + record.setAcquireTime(new Date(lease.getAcquireTime().toInstant().toEpochMilli())); } if (lease.getRenewTime() != null) { - record.setRenewTime(lease.getRenewTime().toDate()); + record.setRenewTime(new Date(lease.getRenewTime().toInstant().toEpochMilli())); } record.setHolderIdentity(lease.getHolderIdentity()); record.setLeaderTransitions(lease.getLeaseTransitions()); @@ -133,8 +136,12 @@ private LeaderElectionRecord getRecordFromLease(V1LeaseSpec lease) { private V1LeaseSpec getLeaseFromRecord(LeaderElectionRecord record) { return new V1LeaseSpec() - .acquireTime(new DateTime(record.getAcquireTime())) - .renewTime(new DateTime(record.getRenewTime())) + .acquireTime( + OffsetDateTime.ofInstant( + Instant.ofEpochMilli(record.getAcquireTime().getTime()), ZoneOffset.UTC)) + .renewTime( + OffsetDateTime.ofInstant( + Instant.ofEpochMilli(record.getRenewTime().getTime()), ZoneOffset.UTC)) .holderIdentity(record.getHolderIdentity()) .leaseDurationSeconds(record.getLeaseDurationSeconds()) .leaseTransitions(record.getLeaderTransitions()); diff --git a/extended/src/test/java/io/kubernetes/client/extended/event/EventCorrelatorTest.java b/extended/src/test/java/io/kubernetes/client/extended/event/EventCorrelatorTest.java index 8276c017b5..37f0fc9b1e 100644 --- a/extended/src/test/java/io/kubernetes/client/extended/event/EventCorrelatorTest.java +++ b/extended/src/test/java/io/kubernetes/client/extended/event/EventCorrelatorTest.java @@ -28,13 +28,13 @@ import io.kubernetes.client.openapi.models.V1ObjectMetaBuilder; import io.kubernetes.client.openapi.models.V1ObjectReference; import io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Optional; import org.apache.commons.lang3.tuple.MutablePair; -import org.joda.time.DateTime; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -159,7 +159,7 @@ public static Collection data() { public void testEventCorrelate() throws InterruptedException { EventCorrelator correlator = new EventCorrelator(); for (CoreV1Event event : previousEvents) { - DateTime now = DateTime.now(); + OffsetDateTime now = OffsetDateTime.now(); event.setFirstTimestamp(now); event.setLastTimestamp(now); Optional> result = correlator.correlate(event); @@ -168,7 +168,7 @@ public void testEventCorrelate() throws InterruptedException { } } Thread.sleep(100); - DateTime now = DateTime.now(); + OffsetDateTime now = OffsetDateTime.now(); newEvent.setFirstTimestamp(now); newEvent.setLastTimestamp(now); Optional> result = correlator.correlate(newEvent); @@ -183,8 +183,8 @@ public void testEventCorrelate() throws InterruptedException { private void validateEvent(CoreV1Event expectedEvent, CoreV1Event actualEvent) { CoreV1Event recvEvent = new CoreV1EventBuilder(actualEvent).build(); - assertNotEquals(0, recvEvent.getFirstTimestamp().getMillis()); - assertNotEquals(0, recvEvent.getLastTimestamp().getMillis()); + assertNotEquals(0, recvEvent.getFirstTimestamp().toInstant().toEpochMilli()); + assertNotEquals(0, recvEvent.getLastTimestamp().toInstant().toEpochMilli()); if (actualEvent.getFirstTimestamp().equals(actualEvent.getLastTimestamp())) { if (expectedEvent.getCount() > 1) { fail("firstTimestamp and lastTimestamp must not be equal to indicate compression happen"); diff --git a/kubernetes/docs/CoreV1Event.md b/kubernetes/docs/CoreV1Event.md index ddcfede2f9..03c8fe7f78 100644 --- a/kubernetes/docs/CoreV1Event.md +++ b/kubernetes/docs/CoreV1Event.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **action** | **String** | What action was taken/failed regarding to the Regarding object. | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **count** | **Integer** | The number of times this event has occurred. | [optional] -**eventTime** | [**DateTime**](DateTime.md) | Time when this Event was first observed. | [optional] -**firstTimestamp** | [**DateTime**](DateTime.md) | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] +**eventTime** | [**OffsetDateTime**](OffsetDateTime.md) | Time when this Event was first observed. | [optional] +**firstTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] **involvedObject** | [**V1ObjectReference**](V1ObjectReference.md) | | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**lastTimestamp** | [**DateTime**](DateTime.md) | The time at which the most recent occurrence of this event was recorded. | [optional] +**lastTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | The time at which the most recent occurrence of this event was recorded. | [optional] **message** | **String** | A human-readable description of the status of this operation. | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | **reason** | **String** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] diff --git a/kubernetes/docs/CoreV1EventSeries.md b/kubernetes/docs/CoreV1EventSeries.md index 28ba806edd..1c15f665c4 100644 --- a/kubernetes/docs/CoreV1EventSeries.md +++ b/kubernetes/docs/CoreV1EventSeries.md @@ -8,7 +8,7 @@ EventSeries contain information on series of events, i.e. thing that was/is happ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **Integer** | Number of occurrences in this series up to the last heartbeat time | [optional] -**lastObservedTime** | [**DateTime**](DateTime.md) | Time of the last occurrence observed | [optional] +**lastObservedTime** | [**OffsetDateTime**](OffsetDateTime.md) | Time of the last occurrence observed | [optional] diff --git a/kubernetes/docs/EventsV1Event.md b/kubernetes/docs/EventsV1Event.md index cf61af22e3..f05492413d 100644 --- a/kubernetes/docs/EventsV1Event.md +++ b/kubernetes/docs/EventsV1Event.md @@ -10,10 +10,10 @@ Name | Type | Description | Notes **action** | **String** | action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters. | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **deprecatedCount** | **Integer** | deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedFirstTimestamp** | [**DateTime**](DateTime.md) | deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedLastTimestamp** | [**DateTime**](DateTime.md) | deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] +**deprecatedFirstTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] +**deprecatedLastTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] **deprecatedSource** | [**V1EventSource**](V1EventSource.md) | | [optional] -**eventTime** | [**DateTime**](DateTime.md) | eventTime is the time when this Event was first observed. It is required. | +**eventTime** | [**OffsetDateTime**](OffsetDateTime.md) | eventTime is the time when this Event was first observed. It is required. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **note** | **String** | note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. | [optional] diff --git a/kubernetes/docs/EventsV1EventSeries.md b/kubernetes/docs/EventsV1EventSeries.md index d2ea70de39..746786738b 100644 --- a/kubernetes/docs/EventsV1EventSeries.md +++ b/kubernetes/docs/EventsV1EventSeries.md @@ -8,7 +8,7 @@ EventSeries contain information on series of events, i.e. thing that was/is happ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **Integer** | count is the number of occurrences in this series up to the last heartbeat time. | -**lastObservedTime** | [**DateTime**](DateTime.md) | lastObservedTime is the time when last Event from the series was seen before last heartbeat. | +**lastObservedTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastObservedTime is the time when last Event from the series was seen before last heartbeat. | diff --git a/kubernetes/docs/V1APIServiceCondition.md b/kubernetes/docs/V1APIServiceCondition.md index b39491969a..c806053731 100644 --- a/kubernetes/docs/V1APIServiceCondition.md +++ b/kubernetes/docs/V1APIServiceCondition.md @@ -7,7 +7,7 @@ APIServiceCondition describes the state of an APIService at a particular point Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | Human-readable message indicating details about last transition. | [optional] **reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | Status is the status of the condition. Can be True, False, Unknown. | diff --git a/kubernetes/docs/V1CertificateSigningRequestCondition.md b/kubernetes/docs/V1CertificateSigningRequestCondition.md index cc508bc679..e5ac137ba7 100644 --- a/kubernetes/docs/V1CertificateSigningRequestCondition.md +++ b/kubernetes/docs/V1CertificateSigningRequestCondition.md @@ -7,8 +7,8 @@ CertificateSigningRequestCondition describes a condition of a CertificateSigning Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. | [optional] -**lastUpdateTime** | [**DateTime**](DateTime.md) | lastUpdateTime is the time of the last update to this condition | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. | [optional] +**lastUpdateTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastUpdateTime is the time of the last update to this condition | [optional] **message** | **String** | message contains a human readable message with details about the request state | [optional] **reason** | **String** | reason indicates a brief reason for the request state | [optional] **status** | **String** | status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". | diff --git a/kubernetes/docs/V1ContainerStateRunning.md b/kubernetes/docs/V1ContainerStateRunning.md index 2cc74954f3..87f0cf7380 100644 --- a/kubernetes/docs/V1ContainerStateRunning.md +++ b/kubernetes/docs/V1ContainerStateRunning.md @@ -7,7 +7,7 @@ ContainerStateRunning is a running state of a container. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**startedAt** | [**DateTime**](DateTime.md) | Time at which the container was last (re-)started | [optional] +**startedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time at which the container was last (re-)started | [optional] diff --git a/kubernetes/docs/V1ContainerStateTerminated.md b/kubernetes/docs/V1ContainerStateTerminated.md index 31837082aa..1bcc246d68 100644 --- a/kubernetes/docs/V1ContainerStateTerminated.md +++ b/kubernetes/docs/V1ContainerStateTerminated.md @@ -9,11 +9,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containerID** | **String** | Container's ID in the format 'docker://<container_id>' | [optional] **exitCode** | **Integer** | Exit status from the last termination of the container | -**finishedAt** | [**DateTime**](DateTime.md) | Time at which the container last terminated | [optional] +**finishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time at which the container last terminated | [optional] **message** | **String** | Message regarding the last termination of the container | [optional] **reason** | **String** | (brief) reason from the last termination of the container | [optional] **signal** | **Integer** | Signal from the last termination of the container | [optional] -**startedAt** | [**DateTime**](DateTime.md) | Time at which previous execution of the container started | [optional] +**startedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time at which previous execution of the container started | [optional] diff --git a/kubernetes/docs/V1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1CustomResourceDefinitionCondition.md index eb916d65bc..a8f2754eef 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1CustomResourceDefinitionCondition.md @@ -7,7 +7,7 @@ CustomResourceDefinitionCondition contains details for the current condition of Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime last time the condition transitioned from one status to another. | [optional] **message** | **String** | message is a human-readable message indicating details about last transition. | [optional] **reason** | **String** | reason is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | status is the status of the condition. Can be True, False, Unknown. | diff --git a/kubernetes/docs/V1DaemonSetCondition.md b/kubernetes/docs/V1DaemonSetCondition.md index e54552e93f..051022ecfc 100644 --- a/kubernetes/docs/V1DaemonSetCondition.md +++ b/kubernetes/docs/V1DaemonSetCondition.md @@ -7,7 +7,7 @@ DaemonSetCondition describes the state of a DaemonSet at a certain point. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | A human readable message indicating details about the transition. | [optional] **reason** | **String** | The reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1DeploymentCondition.md b/kubernetes/docs/V1DeploymentCondition.md index 16742aa3ff..a5dd276da1 100644 --- a/kubernetes/docs/V1DeploymentCondition.md +++ b/kubernetes/docs/V1DeploymentCondition.md @@ -7,8 +7,8 @@ DeploymentCondition describes the state of a deployment at a certain point. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] -**lastUpdateTime** | [**DateTime**](DateTime.md) | The last time this condition was updated. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**lastUpdateTime** | [**OffsetDateTime**](OffsetDateTime.md) | The last time this condition was updated. | [optional] **message** | **String** | A human readable message indicating details about the transition. | [optional] **reason** | **String** | The reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md index 887582c98f..f11bcf1fc3 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **currentCPUUtilizationPercentage** | **Integer** | current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. | [optional] **currentReplicas** | **Integer** | current number of replicas of pods managed by this autoscaler. | **desiredReplicas** | **Integer** | desired number of replicas of pods managed by this autoscaler. | -**lastScaleTime** | [**DateTime**](DateTime.md) | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] +**lastScaleTime** | [**OffsetDateTime**](OffsetDateTime.md) | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] **observedGeneration** | **Long** | most recent generation observed by this autoscaler. | [optional] diff --git a/kubernetes/docs/V1JobCondition.md b/kubernetes/docs/V1JobCondition.md index 3a013c3966..21f61f3e4e 100644 --- a/kubernetes/docs/V1JobCondition.md +++ b/kubernetes/docs/V1JobCondition.md @@ -7,8 +7,8 @@ JobCondition describes current state of a job. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastProbeTime** | [**DateTime**](DateTime.md) | Last time the condition was checked. | [optional] -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transit from one status to another. | [optional] +**lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition was checked. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transit from one status to another. | [optional] **message** | **String** | Human readable message indicating details about last transition. | [optional] **reason** | **String** | (brief) reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index dd1622f506..89221cef67 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -8,10 +8,10 @@ JobStatus represents the current state of a Job. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **Integer** | The number of actively running pods. | [optional] -**completionTime** | [**DateTime**](DateTime.md) | Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**completionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] **conditions** | [**List<V1JobCondition>**](V1JobCondition.md) | The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] **failed** | **Integer** | The number of pods which reached phase Failed. | [optional] -**startTime** | [**DateTime**](DateTime.md) | Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] **succeeded** | **Integer** | The number of pods which reached phase Succeeded. | [optional] diff --git a/kubernetes/docs/V1LeaseSpec.md b/kubernetes/docs/V1LeaseSpec.md index f38f8fbe53..5547d30d9d 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -7,11 +7,11 @@ LeaseSpec is a specification of a Lease. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acquireTime** | [**DateTime**](DateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] +**acquireTime** | [**OffsetDateTime**](OffsetDateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] **holderIdentity** | **String** | holderIdentity contains the identity of the holder of a current lease. | [optional] **leaseDurationSeconds** | **Integer** | leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. | [optional] **leaseTransitions** | **Integer** | leaseTransitions is the number of transitions of a lease between holders. | [optional] -**renewTime** | [**DateTime**](DateTime.md) | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] +**renewTime** | [**OffsetDateTime**](OffsetDateTime.md) | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] diff --git a/kubernetes/docs/V1ManagedFieldsEntry.md b/kubernetes/docs/V1ManagedFieldsEntry.md index d54ca1b16d..4376b7716d 100644 --- a/kubernetes/docs/V1ManagedFieldsEntry.md +++ b/kubernetes/docs/V1ManagedFieldsEntry.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **fieldsV1** | [**Object**](.md) | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] **manager** | **String** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | **String** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] -**time** | [**DateTime**](DateTime.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] +**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] diff --git a/kubernetes/docs/V1NamespaceCondition.md b/kubernetes/docs/V1NamespaceCondition.md index c6fe03b9fd..4cfab73753 100644 --- a/kubernetes/docs/V1NamespaceCondition.md +++ b/kubernetes/docs/V1NamespaceCondition.md @@ -7,7 +7,7 @@ NamespaceCondition contains details about state of namespace. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] **message** | **String** | | [optional] **reason** | **String** | | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1NodeCondition.md b/kubernetes/docs/V1NodeCondition.md index e907fd8c5c..c86927adf1 100644 --- a/kubernetes/docs/V1NodeCondition.md +++ b/kubernetes/docs/V1NodeCondition.md @@ -7,8 +7,8 @@ NodeCondition contains condition information for a node. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastHeartbeatTime** | [**DateTime**](DateTime.md) | Last time we got an update on a given condition. | [optional] -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transit from one status to another. | [optional] +**lastHeartbeatTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time we got an update on a given condition. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transit from one status to another. | [optional] **message** | **String** | Human readable message indicating details about last transition. | [optional] **reason** | **String** | (brief) reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index efe3e689d7..bdba2c64f1 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **Map<String, String>** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **clusterName** | **String** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] -**creationTimestamp** | [**DateTime**](DateTime.md) | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**creationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **deletionGracePeriodSeconds** | **Long** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] -**deletionTimestamp** | [**DateTime**](DateTime.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**deletionTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **finalizers** | **List<String>** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. | [optional] **generateName** | **String** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] **generation** | **Long** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimCondition.md b/kubernetes/docs/V1PersistentVolumeClaimCondition.md index c58c7a6f5a..428bd57a4f 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimCondition.md +++ b/kubernetes/docs/V1PersistentVolumeClaimCondition.md @@ -7,8 +7,8 @@ PersistentVolumeClaimCondition contails details about state of pvc Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastProbeTime** | [**DateTime**](DateTime.md) | Last time we probed the condition. | [optional] -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time we probed the condition. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | Human-readable message indicating details about last transition. | [optional] **reason** | **String** | Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. | [optional] **status** | **String** | | diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 73b3a0d4f5..5e01b413bf 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -7,8 +7,8 @@ PodCondition contains details for the current condition of this pod. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastProbeTime** | [**DateTime**](DateTime.md) | Last time we probed the condition. | [optional] -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**lastProbeTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time we probed the condition. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | Human-readable message indicating details about last transition. | [optional] **reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index f532e5b70b..a0b2b302a1 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **podIPs** | [**List<V1PodIP>**](V1PodIP.md) | podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. | [optional] **qosClass** | **String** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md | [optional] **reason** | **String** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' | [optional] -**startTime** | [**DateTime**](DateTime.md) | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] +**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] diff --git a/kubernetes/docs/V1ReplicaSetCondition.md b/kubernetes/docs/V1ReplicaSetCondition.md index 26c4146dd6..94ded64415 100644 --- a/kubernetes/docs/V1ReplicaSetCondition.md +++ b/kubernetes/docs/V1ReplicaSetCondition.md @@ -7,7 +7,7 @@ ReplicaSetCondition describes the state of a replica set at a certain point. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | The last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | The last time the condition transitioned from one status to another. | [optional] **message** | **String** | A human readable message indicating details about the transition. | [optional] **reason** | **String** | The reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1ReplicationControllerCondition.md b/kubernetes/docs/V1ReplicationControllerCondition.md index 662d69bddd..4cbb50f66e 100644 --- a/kubernetes/docs/V1ReplicationControllerCondition.md +++ b/kubernetes/docs/V1ReplicationControllerCondition.md @@ -7,7 +7,7 @@ ReplicationControllerCondition describes the state of a replication controller a Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | The last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | The last time the condition transitioned from one status to another. | [optional] **message** | **String** | A human readable message indicating details about the transition. | [optional] **reason** | **String** | The reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1StatefulSetCondition.md b/kubernetes/docs/V1StatefulSetCondition.md index 3c34614d04..2588a7ee0f 100644 --- a/kubernetes/docs/V1StatefulSetCondition.md +++ b/kubernetes/docs/V1StatefulSetCondition.md @@ -7,7 +7,7 @@ StatefulSetCondition describes the state of a statefulset at a certain point. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | A human readable message indicating details about the transition. | [optional] **reason** | **String** | The reason for the condition's last transition. | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md index 16049786e3..ff0061000d 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **effect** | **String** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | **key** | **String** | Required. The taint key to be applied to a node. | -**timeAdded** | [**DateTime**](DateTime.md) | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] +**timeAdded** | [**OffsetDateTime**](OffsetDateTime.md) | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] **value** | **String** | The taint value corresponding to the taint key. | [optional] diff --git a/kubernetes/docs/V1TokenRequestStatus.md b/kubernetes/docs/V1TokenRequestStatus.md index 025b21ce44..697a17dfac 100644 --- a/kubernetes/docs/V1TokenRequestStatus.md +++ b/kubernetes/docs/V1TokenRequestStatus.md @@ -7,7 +7,7 @@ TokenRequestStatus is the result of a token request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expirationTimestamp** | [**DateTime**](DateTime.md) | ExpirationTimestamp is the time of expiration of the returned token. | +**expirationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | ExpirationTimestamp is the time of expiration of the returned token. | **token** | **String** | Token is the opaque bearer token. | diff --git a/kubernetes/docs/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index 1120eee3b5..cfec2843cc 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -8,7 +8,7 @@ VolumeError captures an error encountered during a volume operation. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] -**time** | [**DateTime**](DateTime.md) | Time the error was encountered. | [optional] +**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time the error was encountered. | [optional] diff --git a/kubernetes/docs/V1alpha1FlowSchemaCondition.md b/kubernetes/docs/V1alpha1FlowSchemaCondition.md index 7c153c74a0..0e6768da68 100644 --- a/kubernetes/docs/V1alpha1FlowSchemaCondition.md +++ b/kubernetes/docs/V1alpha1FlowSchemaCondition.md @@ -7,7 +7,7 @@ FlowSchemaCondition describes conditions for a FlowSchema. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] **message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] **reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] diff --git a/kubernetes/docs/V1alpha1PriorityLevelConfigurationCondition.md b/kubernetes/docs/V1alpha1PriorityLevelConfigurationCondition.md index 528d646a99..32cba41003 100644 --- a/kubernetes/docs/V1alpha1PriorityLevelConfigurationCondition.md +++ b/kubernetes/docs/V1alpha1PriorityLevelConfigurationCondition.md @@ -7,7 +7,7 @@ PriorityLevelConfigurationCondition defines the condition of priority level. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] **message** | **String** | `message` is a human-readable message indicating details about last transition. | [optional] **reason** | **String** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] diff --git a/kubernetes/docs/V1alpha1VolumeError.md b/kubernetes/docs/V1alpha1VolumeError.md index 5c934b7522..0fcd738760 100644 --- a/kubernetes/docs/V1alpha1VolumeError.md +++ b/kubernetes/docs/V1alpha1VolumeError.md @@ -8,7 +8,7 @@ VolumeError captures an error encountered during a volume operation. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. | [optional] -**time** | [**DateTime**](DateTime.md) | Time the error was encountered. | [optional] +**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time the error was encountered. | [optional] diff --git a/kubernetes/docs/V1beta1APIServiceCondition.md b/kubernetes/docs/V1beta1APIServiceCondition.md index b0b3a67208..0150e7d08b 100644 --- a/kubernetes/docs/V1beta1APIServiceCondition.md +++ b/kubernetes/docs/V1beta1APIServiceCondition.md @@ -7,7 +7,7 @@ APIServiceCondition describes the state of an APIService at a particular point Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | Human-readable message indicating details about last transition. | [optional] **reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | Status is the status of the condition. Can be True, False, Unknown. | diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md index ad574d74c5..1e47f70d86 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. | [optional] -**lastUpdateTime** | [**DateTime**](DateTime.md) | timestamp for the last update to this condition | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time. | [optional] +**lastUpdateTime** | [**OffsetDateTime**](OffsetDateTime.md) | timestamp for the last update to this condition | [optional] **message** | **String** | human readable message with details about the request state | [optional] **reason** | **String** | brief reason for the request state | [optional] **status** | **String** | Status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\". Defaults to \"True\". If unset, should be treated as \"True\". | [optional] diff --git a/kubernetes/docs/V1beta1CronJobStatus.md b/kubernetes/docs/V1beta1CronJobStatus.md index 47953fc8be..87ac54577d 100644 --- a/kubernetes/docs/V1beta1CronJobStatus.md +++ b/kubernetes/docs/V1beta1CronJobStatus.md @@ -8,7 +8,7 @@ CronJobStatus represents the current state of a cron job. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | [**List<V1ObjectReference>**](V1ObjectReference.md) | A list of pointers to currently running jobs. | [optional] -**lastScheduleTime** | [**DateTime**](DateTime.md) | Information when was the last time the job was successfully scheduled. | [optional] +**lastScheduleTime** | [**OffsetDateTime**](OffsetDateTime.md) | Information when was the last time the job was successfully scheduled. | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md index 39f6458148..165bf14e95 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md @@ -7,7 +7,7 @@ CustomResourceDefinitionCondition contains details for the current condition of Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime last time the condition transitioned from one status to another. | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime last time the condition transitioned from one status to another. | [optional] **message** | **String** | message is a human-readable message indicating details about last transition. | [optional] **reason** | **String** | reason is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | status is the status of the condition. Can be True, False, Unknown. | diff --git a/kubernetes/docs/V1beta1Event.md b/kubernetes/docs/V1beta1Event.md index b61c347351..3376b9dd9f 100644 --- a/kubernetes/docs/V1beta1Event.md +++ b/kubernetes/docs/V1beta1Event.md @@ -10,10 +10,10 @@ Name | Type | Description | Notes **action** | **String** | action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters. | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **deprecatedCount** | **Integer** | deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedFirstTimestamp** | [**DateTime**](DateTime.md) | deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedLastTimestamp** | [**DateTime**](DateTime.md) | deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] +**deprecatedFirstTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] +**deprecatedLastTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] **deprecatedSource** | [**V1EventSource**](V1EventSource.md) | | [optional] -**eventTime** | [**DateTime**](DateTime.md) | eventTime is the time when this Event was first observed. It is required. | +**eventTime** | [**OffsetDateTime**](OffsetDateTime.md) | eventTime is the time when this Event was first observed. It is required. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **note** | **String** | note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. | [optional] diff --git a/kubernetes/docs/V1beta1EventSeries.md b/kubernetes/docs/V1beta1EventSeries.md index 8d5a678b0b..17e314b50d 100644 --- a/kubernetes/docs/V1beta1EventSeries.md +++ b/kubernetes/docs/V1beta1EventSeries.md @@ -8,7 +8,7 @@ EventSeries contain information on series of events, i.e. thing that was/is happ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **Integer** | count is the number of occurrences in this series up to the last heartbeat time. | -**lastObservedTime** | [**DateTime**](DateTime.md) | lastObservedTime is the time when last Event from the series was seen before last heartbeat. | +**lastObservedTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastObservedTime is the time when last Event from the series was seen before last heartbeat. | diff --git a/kubernetes/docs/V1beta1LeaseSpec.md b/kubernetes/docs/V1beta1LeaseSpec.md index 0aa3ca429b..deeb56343d 100644 --- a/kubernetes/docs/V1beta1LeaseSpec.md +++ b/kubernetes/docs/V1beta1LeaseSpec.md @@ -7,11 +7,11 @@ LeaseSpec is a specification of a Lease. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acquireTime** | [**DateTime**](DateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] +**acquireTime** | [**OffsetDateTime**](OffsetDateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] **holderIdentity** | **String** | holderIdentity contains the identity of the holder of a current lease. | [optional] **leaseDurationSeconds** | **Integer** | leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. | [optional] **leaseTransitions** | **Integer** | leaseTransitions is the number of transitions of a lease between holders. | [optional] -**renewTime** | [**DateTime**](DateTime.md) | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] +**renewTime** | [**OffsetDateTime**](OffsetDateTime.md) | renewTime is a time when the current holder of a lease has last updated the lease. | [optional] diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md index 7648dab144..191412b291 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currentHealthy** | **Integer** | current number of healthy pods | **desiredHealthy** | **Integer** | minimum desired number of healthy pods | -**disruptedPods** | [**Map<String, DateTime>**](DateTime.md) | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | [optional] +**disruptedPods** | [**Map<String, OffsetDateTime>**](OffsetDateTime.md) | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | [optional] **disruptionsAllowed** | **Integer** | Number of pod disruptions that are currently allowed. | **expectedPods** | **Integer** | total number of pods counted by this disruption budget | **observedGeneration** | **Long** | Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. | [optional] diff --git a/kubernetes/docs/V1beta1VolumeError.md b/kubernetes/docs/V1beta1VolumeError.md index 99a5ec3bc8..4dee387182 100644 --- a/kubernetes/docs/V1beta1VolumeError.md +++ b/kubernetes/docs/V1beta1VolumeError.md @@ -8,7 +8,7 @@ VolumeError captures an error encountered during a volume operation. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] -**time** | [**DateTime**](DateTime.md) | Time the error was encountered. | [optional] +**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time the error was encountered. | [optional] diff --git a/kubernetes/docs/V2alpha1CronJobStatus.md b/kubernetes/docs/V2alpha1CronJobStatus.md index 75b8530baa..6948bc47b8 100644 --- a/kubernetes/docs/V2alpha1CronJobStatus.md +++ b/kubernetes/docs/V2alpha1CronJobStatus.md @@ -8,7 +8,7 @@ CronJobStatus represents the current state of a cron job. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | [**List<V1ObjectReference>**](V1ObjectReference.md) | A list of pointers to currently running jobs. | [optional] -**lastScheduleTime** | [**DateTime**](DateTime.md) | Information when was the last time the job was successfully scheduled. | [optional] +**lastScheduleTime** | [**OffsetDateTime**](OffsetDateTime.md) | Information when was the last time the job was successfully scheduled. | [optional] diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md index be3d6a94ac..37a1df8852 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md @@ -7,7 +7,7 @@ HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscale Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] **message** | **String** | message is a human-readable explanation containing details about the transition | [optional] **reason** | **String** | reason is the reason for the condition's last transition. | [optional] **status** | **String** | status is the status of the condition (True, False, Unknown) | diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md index c0e1c33d46..5ec1c8ba7a 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **currentMetrics** | [**List<V2beta1MetricStatus>**](V2beta1MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | [optional] **currentReplicas** | **Integer** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | **desiredReplicas** | **Integer** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | -**lastScaleTime** | [**DateTime**](DateTime.md) | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] +**lastScaleTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] **observedGeneration** | **Long** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md index 2243cae3b3..b1aaa044b2 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md @@ -7,7 +7,7 @@ HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscale Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] +**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] **message** | **String** | message is a human-readable explanation containing details about the transition | [optional] **reason** | **String** | reason is the reason for the condition's last transition. | [optional] **status** | **String** | status is the status of the condition (True, False, Unknown) | diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md index 270764660a..528681a94a 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **currentMetrics** | [**List<V2beta2MetricStatus>**](V2beta2MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | [optional] **currentReplicas** | **Integer** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | **desiredReplicas** | **Integer** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | -**lastScaleTime** | [**DateTime**](DateTime.md) | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] +**lastScaleTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] **observedGeneration** | **Long** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] diff --git a/kubernetes/pom.xml b/kubernetes/pom.xml index 500b405036..d6e6412dea 100644 --- a/kubernetes/pom.xml +++ b/kubernetes/pom.xml @@ -167,14 +167,6 @@ io.gsonfire gson-fire - - joda-time - joda-time - - - org.joda - joda-convert - org.apache.commons commons-lang3 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java index 37b9fd13e6..95ae833ac5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java index fac85191df..f610b7ee32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,44 +29,22 @@ import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.text.DateFormat; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.*; import java.util.Map.Entry; -import java.util.Objects; import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.net.ssl.HostnameVerifier; -import javax.net.ssl.KeyManager; -import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLSession; -import javax.net.ssl.TrustManager; -import javax.net.ssl.TrustManagerFactory; -import javax.net.ssl.X509TrustManager; -import okhttp3.Call; -import okhttp3.Callback; -import okhttp3.Headers; -import okhttp3.Interceptor; -import okhttp3.MediaType; -import okhttp3.MultipartBody; -import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.RequestBody; -import okhttp3.Response; +import javax.net.ssl.*; +import okhttp3.*; import okhttp3.internal.http.HttpMethod; import okhttp3.internal.tls.OkHostnameVerifier; import okhttp3.logging.HttpLoggingInterceptor; import okhttp3.logging.HttpLoggingInterceptor.Level; import okio.BufferedSink; import okio.Okio; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.joda.time.format.DateTimeFormatter; public class ApiClient { @@ -125,7 +103,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("Kubernetes Java Client/10.0.1-SNAPSHOT"); + setUserAgent("Kubernetes Java Client/11.0.1-SNAPSHOT"); authentications = new HashMap(); } @@ -266,8 +244,8 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) { return this; } - public ApiClient setDateTimeFormat(DateTimeFormatter dateFormat) { - this.json.setDateTimeFormat(dateFormat); + public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + this.json.setOffsetDateTimeFormat(dateFormat); return this; } @@ -530,7 +508,9 @@ public ApiClient setWriteTimeout(int writeTimeout) { public String parameterToString(Object param) { if (param == null) { return ""; - } else if (param instanceof Date || param instanceof DateTime || param instanceof LocalDate) { + } else if (param instanceof Date + || param instanceof OffsetDateTime + || param instanceof LocalDate) { // Serialize to json string and remove the " enclosing characters String jsonStr = json.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java index 4d57af86b6..69c00f8c46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -17,7 +17,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java index 417dbcc7e0..08cb4a85e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java index 771f1e96ad..e3e16f659e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java index 90d40a39d5..d0065e1f97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -13,11 +13,7 @@ package io.kubernetes.client.openapi; import java.io.IOException; -import okhttp3.Interceptor; -import okhttp3.MediaType; -import okhttp3.Request; -import okhttp3.RequestBody; -import okhttp3.Response; +import okhttp3.*; import okio.Buffer; import okio.BufferedSink; import okio.GzipSink; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java index 0bb5bb5a33..14a21aff1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -17,41 +17,36 @@ import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.gsonfire.GsonFireBuilder; -import io.kubernetes.client.gson.V1StatusPreProcessor; -import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.*; import java.io.IOException; import java.io.StringReader; import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; +import java.text.ParsePosition; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.Date; -import java.util.Locale; import java.util.Map; import okio.ByteString; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.joda.time.format.DateTimeFormatter; -import org.joda.time.format.DateTimeFormatterBuilder; -import org.joda.time.format.ISODateTimeFormat; public class JSON { private Gson gson; private boolean isLenientOnJson = false; private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private DateTimeTypeAdapter dateTimeTypeAdapter = new DateTimeTypeAdapter(); + private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder(); - GsonBuilder builder = - fireBuilder - .registerPreProcessor(V1Status.class, new V1StatusPreProcessor()) - .createGsonBuilder(); + GsonBuilder builder = fireBuilder.createGsonBuilder(); return builder; } @@ -64,10 +59,17 @@ private static String getDiscriminatorValue(JsonElement readElement, String disc return element.getAsString(); } + /** + * Returns the Java class that implements the OpenAPI schema for the specified discriminator + * value. + * + * @param classByDiscriminatorValue The map of discriminator values to Java classes. + * @param discriminatorValue The value of the OpenAPI discriminator in the input data. + * @return The Java class that implements the OpenAPI schema + */ private static Class getClassByDiscriminator( Map classByDiscriminatorValue, String discriminatorValue) { - Class clazz = - (Class) classByDiscriminatorValue.get(discriminatorValue.toUpperCase(Locale.ROOT)); + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); if (null == clazz) { throw new IllegalArgumentException( "cannot determine model class of name: <" + discriminatorValue + ">"); @@ -80,7 +82,7 @@ public JSON() { createGson() .registerTypeAdapter(Date.class, dateTypeAdapter) .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) - .registerTypeAdapter(DateTime.class, dateTimeTypeAdapter) + .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) .registerTypeAdapter(byte[].class, byteArrayAdapter) .create(); @@ -181,21 +183,16 @@ public byte[] read(JsonReader in) throws IOException { } } - /** Gson TypeAdapter for Joda DateTime type */ - public static class DateTimeTypeAdapter extends TypeAdapter { + /** Gson TypeAdapter for JSR310 OffsetDateTime type */ + public static class OffsetDateTimeTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; - public DateTimeTypeAdapter() { - this( - new DateTimeFormatterBuilder() - .append( - ISODateTimeFormat.dateTime().getPrinter(), - ISODateTimeFormat.dateOptionalTimeParser().getParser()) - .toFormatter()); + public OffsetDateTimeTypeAdapter() { + this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); } - public DateTimeTypeAdapter(DateTimeFormatter formatter) { + public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { this.formatter = formatter; } @@ -204,34 +201,37 @@ public void setFormat(DateTimeFormatter dateFormat) { } @Override - public void write(JsonWriter out, DateTime date) throws IOException { + public void write(JsonWriter out, OffsetDateTime date) throws IOException { if (date == null) { out.nullValue(); } else { - out.value(formatter.print(date)); + out.value(formatter.format(date)); } } @Override - public DateTime read(JsonReader in) throws IOException { + public OffsetDateTime read(JsonReader in) throws IOException { switch (in.peek()) { case NULL: in.nextNull(); return null; default: String date = in.nextString(); - return formatter.parseDateTime(date); + if (date.endsWith("+0000")) { + date = date.substring(0, date.length() - 5) + "Z"; + } + return OffsetDateTime.parse(date, formatter); } } } - /** Gson TypeAdapter for Joda LocalDate type */ + /** Gson TypeAdapter for JSR310 LocalDate type */ public class LocalDateTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; public LocalDateTypeAdapter() { - this(ISODateTimeFormat.date()); + this(DateTimeFormatter.ISO_LOCAL_DATE); } public LocalDateTypeAdapter(DateTimeFormatter formatter) { @@ -247,7 +247,7 @@ public void write(JsonWriter out, LocalDate date) throws IOException { if (date == null) { out.nullValue(); } else { - out.value(formatter.print(date)); + out.value(formatter.format(date)); } } @@ -259,13 +259,13 @@ public LocalDate read(JsonReader in) throws IOException { return null; default: String date = in.nextString(); - return formatter.parseLocalDate(date); + return LocalDate.parse(date, formatter); } } } - public JSON setDateTimeFormat(DateTimeFormatter dateFormat) { - dateTimeTypeAdapter.setFormat(dateFormat); + public JSON setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + offsetDateTimeTypeAdapter.setFormat(dateFormat); return this; } @@ -319,7 +319,7 @@ public java.sql.Date read(JsonReader in) throws IOException { if (dateFormat != null) { return new java.sql.Date(dateFormat.parse(date).getTime()); } - return new java.sql.Date(ISODateTimeFormat.basicDateTime().parseMillis(date)); + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); } catch (ParseException e) { throw new JsonParseException(e); } @@ -353,7 +353,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = ISODateTimeFormat.basicDateTime().print(date.getTime()); + value = ISO8601Utils.format(date, true); } out.value(value); } @@ -372,7 +372,7 @@ public Date read(JsonReader in) throws IOException { if (dateFormat != null) { return dateFormat.parse(date); } - return ISODateTimeFormat.basicDateTime().parseDateTime(date).toDate(); + return ISO8601Utils.parse(date, new ParsePosition(0)); } catch (ParseException e) { throw new JsonParseException(e); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java index 7761c5ce58..91aac32cdf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java index a6f1c3c87e..a6197e0ebc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java index 01badf1caa..f12d47606c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java index 21fee68788..9cca09de6a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index 409bdb9934..a360786ec1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index c7a380faae..242dcf166e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java index 1644d44368..0afefa9f04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java index 4555ca9acc..94df57adab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java index 31b6aedbf7..82e9ad3162 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java index 379fa1342b..04d841607a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java index 5663ca3770..4a1bb98daa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1beta1Api.java index 343f1e862b..8e17f71faf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java index a710955455..44434087c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java index ff16c05e77..dbd66d79ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1beta1Api.java index dc45776aff..f98bde267b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java index 873cde7905..4de837c970 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java index 16849a51be..1f79ea136b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java index 9628706b64..f8ecbec0ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java index 8d9aee9d59..13836d321e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java index 82a0ae5a68..3cb8fd8edb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java index e52695e7ae..44a5a6f5ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java index 9b35119e4c..cfd1d20157 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java index 2843301147..b8e9667992 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1beta1Api.java index 693ba4b5b2..7bb9533898 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java index 1979e6fe8f..44c48efa52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java index a63f291711..dd2c8ad9ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta1Api.java index 4b5a573a74..f2ab40673a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta2Api.java index 02a177b0bd..4fb8b3502a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta2Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java index 3b74d17d11..01760bbce3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java index 2a9a5b6da0..7f2a4b5067 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1beta1Api.java index 10a62c84f8..9edf9a4fc1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV2alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV2alpha1Api.java index ac328fef01..1ec4b38069 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV2alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV2alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java index 8caeab2e79..836d99c709 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java index b3f95ff276..8a57e74691 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java index 94e86aac05..95cd91f259 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java index 102627da3d..1bb16600af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java index 52ed1c3d40..70422ba676 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java index 61957b4064..66315fdaf2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java index a8b667bf98..4f0e9b19cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java index fece478cf1..ee7fb82c63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java index adff585235..ceeea30c60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java index c5d7b390bd..3a9d593ce2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1beta1Api.java index 4042fccba3..c0619ec8fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java index e78aa421e4..cdfc8ab1a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java index e95a65527e..45c0293153 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1beta1Api.java index 13d1033d0a..6102c2d19f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsApi.java index 1ef6f5b9dc..305e6cc999 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsV1beta1Api.java index 7b31aeaf8c..2e345fa153 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ExtensionsV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java index e7114c1a61..e95a243f40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1alpha1Api.java index 08b823ee9d..5df8769b29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java index 4310662ed1..3ff3dcbe10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java index 10ee87615c..289d9f2754 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java index ac3f8bd1f5..da3d8a7e47 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java index cf76e8bb65..2f65cab21c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java index 60d6ea6e4d..e04c3f9bee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1alpha1Api.java index 3731b634ac..585344c0a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1beta1Api.java index 738fe3fd43..fe46e6be1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java index 7277dfc462..55caf236b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1beta1Api.java index a03e588e49..a55404fac2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java index c87e444293..64956e56fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java index 725171c367..5ab13e4fcb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1alpha1Api.java index 71dc37bbe5..ca20b87c4d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1beta1Api.java index c23c6d79fe..5287f9033c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java index 59d3f6e53c..5a7886a039 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java index 9aae1ea69f..592a86846b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java index 563893ff3e..cde5bbcd39 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java index 969ebddffe..be1ee188e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsApi.java index f77f54b94d..31509b9e67 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsV1alpha1Api.java index 8c210c49b0..5832f8340a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SettingsV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java index 4ba4ffcd3e..e7d5778040 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java index f1ae73557a..bb903cdee1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java index 6dc5daf5c3..7545fde32d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java index 7a25e58797..1c20cee24c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java index 709df2368d..34957213a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java index c8a2f6e41c..d97c55b701 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java index 0537a05c75..012c927ad3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java index 664ef357fb..6d82557d49 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBasicAuth.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java index 451f3d3cfa..dec566d64b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java index b7885983d6..056e482846 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java index f64bbe72aa..57fd04912b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1ServiceReference.java index 4c1ba95060..a5ca853012 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1ServiceReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class AdmissionregistrationV1beta1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1WebhookClientConfig.java index 1213c322d4..c528faba98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1beta1WebhookClientConfig.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class AdmissionregistrationV1beta1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java index 7c56c320f4..71174d006d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java index 6c0040a465..632dcc7e11 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1ServiceReference.java index 00508a4e2f..3decbaa770 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1ServiceReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiextensionsV1beta1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1WebhookClientConfig.java index ea794bab34..dd5d0388bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1beta1WebhookClientConfig.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiextensionsV1beta1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java index 050a48eb6d..5a9235b482 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1beta1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1beta1ServiceReference.java index 0727a916bf..02674de213 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1beta1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1beta1ServiceReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ApiregistrationV1beta1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java index 44b52f4f24..0f7fb9b176 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,14 +15,14 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** Event is a report of an event somewhere in the cluster. */ @ApiModel(description = "Event is a report of an event somewhere in the cluster.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @@ -42,12 +42,12 @@ public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) - private DateTime eventTime; + private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_FIRST_TIMESTAMP = "firstTimestamp"; @SerializedName(SERIALIZED_NAME_FIRST_TIMESTAMP) - private DateTime firstTimestamp; + private OffsetDateTime firstTimestamp; public static final String SERIALIZED_NAME_INVOLVED_OBJECT = "involvedObject"; @@ -62,7 +62,7 @@ public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject public static final String SERIALIZED_NAME_LAST_TIMESTAMP = "lastTimestamp"; @SerializedName(SERIALIZED_NAME_LAST_TIMESTAMP) - private DateTime lastTimestamp; + private OffsetDateTime lastTimestamp; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -177,7 +177,7 @@ public void setCount(Integer count) { this.count = count; } - public CoreV1Event eventTime(DateTime eventTime) { + public CoreV1Event eventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; return this; @@ -190,15 +190,15 @@ public CoreV1Event eventTime(DateTime eventTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time when this Event was first observed.") - public DateTime getEventTime() { + public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(DateTime eventTime) { + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } - public CoreV1Event firstTimestamp(DateTime firstTimestamp) { + public CoreV1Event firstTimestamp(OffsetDateTime firstTimestamp) { this.firstTimestamp = firstTimestamp; return this; @@ -213,11 +213,11 @@ public CoreV1Event firstTimestamp(DateTime firstTimestamp) { @ApiModelProperty( value = "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)") - public DateTime getFirstTimestamp() { + public OffsetDateTime getFirstTimestamp() { return firstTimestamp; } - public void setFirstTimestamp(DateTime firstTimestamp) { + public void setFirstTimestamp(OffsetDateTime firstTimestamp) { this.firstTimestamp = firstTimestamp; } @@ -267,7 +267,7 @@ public void setKind(String kind) { this.kind = kind; } - public CoreV1Event lastTimestamp(DateTime lastTimestamp) { + public CoreV1Event lastTimestamp(OffsetDateTime lastTimestamp) { this.lastTimestamp = lastTimestamp; return this; @@ -281,11 +281,11 @@ public CoreV1Event lastTimestamp(DateTime lastTimestamp) { @javax.annotation.Nullable @ApiModelProperty( value = "The time at which the most recent occurrence of this event was recorded.") - public DateTime getLastTimestamp() { + public OffsetDateTime getLastTimestamp() { return lastTimestamp; } - public void setLastTimestamp(DateTime lastTimestamp) { + public void setLastTimestamp(OffsetDateTime lastTimestamp) { this.lastTimestamp = lastTimestamp; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java index 6342c4248b..2f02fe0a24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EventList is a list of events.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class CoreV1EventList implements io.kubernetes.client.common.KubernetesLi public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java index 97e5e99938..0858c0c3b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * EventSeries contain information on series of events, i.e. thing that was/is happening @@ -27,7 +27,7 @@ "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @@ -37,7 +37,7 @@ public class CoreV1EventSeries { public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) - private DateTime lastObservedTime; + private OffsetDateTime lastObservedTime; public CoreV1EventSeries count(Integer count) { @@ -60,7 +60,7 @@ public void setCount(Integer count) { this.count = count; } - public CoreV1EventSeries lastObservedTime(DateTime lastObservedTime) { + public CoreV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; return this; @@ -73,11 +73,11 @@ public CoreV1EventSeries lastObservedTime(DateTime lastObservedTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time of the last occurrence observed") - public DateTime getLastObservedTime() { + public OffsetDateTime getLastObservedTime() { return lastObservedTime; } - public void setLastObservedTime(DateTime lastObservedTime) { + public void setLastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java index 8bf2a835b9..2be364a6f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * Event is a report of an event somewhere in the cluster. It generally denotes some state change in @@ -27,7 +27,7 @@ "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @@ -48,12 +48,12 @@ public class EventsV1Event implements io.kubernetes.client.common.KubernetesObje "deprecatedFirstTimestamp"; @SerializedName(SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP) - private DateTime deprecatedFirstTimestamp; + private OffsetDateTime deprecatedFirstTimestamp; public static final String SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP = "deprecatedLastTimestamp"; @SerializedName(SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP) - private DateTime deprecatedLastTimestamp; + private OffsetDateTime deprecatedLastTimestamp; public static final String SERIALIZED_NAME_DEPRECATED_SOURCE = "deprecatedSource"; @@ -63,7 +63,7 @@ public class EventsV1Event implements io.kubernetes.client.common.KubernetesObje public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) - private DateTime eventTime; + private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_KIND = "kind"; @@ -189,7 +189,7 @@ public void setDeprecatedCount(Integer deprecatedCount) { this.deprecatedCount = deprecatedCount; } - public EventsV1Event deprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) { + public EventsV1Event deprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; return this; @@ -205,15 +205,15 @@ public EventsV1Event deprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) @ApiModelProperty( value = "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - public DateTime getDeprecatedFirstTimestamp() { + public OffsetDateTime getDeprecatedFirstTimestamp() { return deprecatedFirstTimestamp; } - public void setDeprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) { + public void setDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; } - public EventsV1Event deprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { + public EventsV1Event deprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; return this; @@ -229,11 +229,11 @@ public EventsV1Event deprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { @ApiModelProperty( value = "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - public DateTime getDeprecatedLastTimestamp() { + public OffsetDateTime getDeprecatedLastTimestamp() { return deprecatedLastTimestamp; } - public void setDeprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { + public void setDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; } @@ -258,7 +258,7 @@ public void setDeprecatedSource(V1EventSource deprecatedSource) { this.deprecatedSource = deprecatedSource; } - public EventsV1Event eventTime(DateTime eventTime) { + public EventsV1Event eventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; return this; @@ -272,11 +272,11 @@ public EventsV1Event eventTime(DateTime eventTime) { @ApiModelProperty( required = true, value = "eventTime is the time when this Event was first observed. It is required.") - public DateTime getEventTime() { + public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(DateTime eventTime) { + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java index 236880d938..af3c8fe2ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EventList is a list of Event objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class EventsV1EventList implements io.kubernetes.client.common.Kubernetes public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java index 4bec076b56..02e45b4154 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * EventSeries contain information on series of events, i.e. thing that was/is happening @@ -29,7 +29,7 @@ "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @@ -39,7 +39,7 @@ public class EventsV1EventSeries { public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) - private DateTime lastObservedTime; + private OffsetDateTime lastObservedTime; public EventsV1EventSeries count(Integer count) { @@ -63,7 +63,7 @@ public void setCount(Integer count) { this.count = count; } - public EventsV1EventSeries lastObservedTime(DateTime lastObservedTime) { + public EventsV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; return this; @@ -78,11 +78,11 @@ public EventsV1EventSeries lastObservedTime(DateTime lastObservedTime) { required = true, value = "lastObservedTime is the time when last Event from the series was seen before last heartbeat.") - public DateTime getLastObservedTime() { + public OffsetDateTime getLastObservedTime() { return lastObservedTime; } - public void setLastObservedTime(DateTime lastObservedTime) { + public void setLastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressPath.java index cbd0f9d3d0..5916918c80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressPath.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressRuleValue.java index cef0732497..ff39c608b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1HTTPIngressRuleValue.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,13 +30,12 @@ "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) - private List paths = - new ArrayList(); + private List paths = new ArrayList<>(); public ExtensionsV1beta1HTTPIngressRuleValue paths(List paths) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1Ingress.java index 856222f342..0af115c7d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1Ingress.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressBackend.java index f2df28fd38..186ce80f8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressBackend.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressList.java index a80824321b..c163f0e638 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressList is a collection of Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class ExtensionsV1beta1IngressList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressRule.java index 1c55a752ce..6febd1d1f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressSpec.java index 81d2cb178f..b9eb788f6a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1IngressSpec { public static final String SERIALIZED_NAME_BACKEND = "backend"; @@ -104,7 +104,7 @@ public ExtensionsV1beta1IngressSpec rules(List rul public ExtensionsV1beta1IngressSpec addRulesItem(ExtensionsV1beta1IngressRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; @@ -136,7 +136,7 @@ public ExtensionsV1beta1IngressSpec tls(List tls) { public ExtensionsV1beta1IngressSpec addTlsItem(ExtensionsV1beta1IngressTLS tlsItem) { if (this.tls == null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); } this.tls.add(tlsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressStatus.java index e0d74e75f2..1032315492 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressTLS.java index 4c846d518b..0d319433f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ExtensionsV1beta1IngressTLS.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "IngressTLS describes the transport layer security associated with an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class ExtensionsV1beta1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @@ -44,7 +44,7 @@ public ExtensionsV1beta1IngressTLS hosts(List hosts) { public ExtensionsV1beta1IngressTLS addHostsItem(String hostsItem) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); } this.hosts.add(hostsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1alpha1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1alpha1Subject.java index b4d0b71fd7..a949dcca3a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1alpha1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1alpha1Subject.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class FlowcontrolV1alpha1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressPath.java index a02d03f84e..60db8b2a29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressPath.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressRuleValue.java index e2e23a0751..32b51a5f0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1HTTPIngressRuleValue.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,13 +30,12 @@ "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) - private List paths = - new ArrayList(); + private List paths = new ArrayList<>(); public NetworkingV1beta1HTTPIngressRuleValue paths(List paths) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1Ingress.java index 68368ca9c2..80d65972e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1Ingress.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressBackend.java index 5151d30b2b..e7100418d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressBackend.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressList.java index 9e53097077..8ee2a135fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressList is a collection of Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class NetworkingV1beta1IngressList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressRule.java index eb00c0352b..95017c04a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressSpec.java index c039ad6b04..29783142b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1IngressSpec { public static final String SERIALIZED_NAME_BACKEND = "backend"; @@ -104,7 +104,7 @@ public NetworkingV1beta1IngressSpec rules(List rul public NetworkingV1beta1IngressSpec addRulesItem(NetworkingV1beta1IngressRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; @@ -136,7 +136,7 @@ public NetworkingV1beta1IngressSpec tls(List tls) { public NetworkingV1beta1IngressSpec addTlsItem(NetworkingV1beta1IngressTLS tlsItem) { if (this.tls == null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); } this.tls.add(tlsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressStatus.java index 05aaf7c748..df06c49ea5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressTLS.java index 9b44735bc4..b052b7b94d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/NetworkingV1beta1IngressTLS.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "IngressTLS describes the transport layer security associated with an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class NetworkingV1beta1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @@ -44,7 +44,7 @@ public NetworkingV1beta1IngressTLS hosts(List hosts) { public NetworkingV1beta1IngressTLS addHostsItem(String hostsItem) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); } this.hosts.add(hostsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1alpha1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1alpha1Subject.java index 0c7662e59d..eb9944d3ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1alpha1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1alpha1Subject.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class RbacV1alpha1Subject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java index 1e65366fb3..25ea6b4362 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "APIGroup contains the name, the supported versions, and the preferred version of a group.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -56,7 +56,7 @@ public class V1APIGroup { public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) - private List versions = new ArrayList(); + private List versions = new ArrayList<>(); public V1APIGroup apiVersion(String apiVersion) { @@ -161,7 +161,7 @@ public V1APIGroup serverAddressByClientCIDRs( public V1APIGroup addServerAddressByClientCIDRsItem( V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + this.serverAddressByClientCIDRs = new ArrayList<>(); } this.serverAddressByClientCIDRs.add(serverAddressByClientCIDRsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java index 44f180f66b..3a0111a387 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,7 +35,7 @@ public class V1APIGroupList { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) - private List groups = new ArrayList(); + private List groups = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java index c7ae7e6234..38733d0ac4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "APIResource specifies the name of a resource and whether it is namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @@ -69,7 +69,7 @@ public class V1APIResource { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERSION = "version"; @@ -84,7 +84,7 @@ public V1APIResource categories(List categories) { public V1APIResource addCategoriesItem(String categoriesItem) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.add(categoriesItem); return this; @@ -202,7 +202,7 @@ public V1APIResource shortNames(List shortNames) { public V1APIResource addShortNamesItem(String shortNamesItem) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.add(shortNamesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java index 67e1307a27..d790469e76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -48,7 +48,7 @@ public class V1APIResourceList { public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) - private List resources = new ArrayList(); + private List resources = new ArrayList<>(); public V1APIResourceList apiVersion(String apiVersion) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java index a7a632e757..20148e57fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java index 7ee17154b0..d4e99f86da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,20 +15,20 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel( description = "APIServiceCondition describes the state of an APIService at a particular point") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -50,7 +50,7 @@ public class V1APIServiceCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1APIServiceCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -63,11 +63,11 @@ public V1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java index 92e7987870..3853e24ece 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceList is a list of APIService objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1APIServiceList implements io.kubernetes.client.common.KubernetesL public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java index 0e38e8ffe7..9224304c7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java index 0c731fcdc7..712ecdb1cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceStatus contains derived information about an API server") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -38,7 +38,7 @@ public V1APIServiceStatus conditions(List conditions) { public V1APIServiceStatus addConditionsItem(V1APIServiceCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java index 62512108ee..a4b80c45fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -44,13 +44,12 @@ public class V1APIVersions { "serverAddressByClientCIDRs"; @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS) - private List serverAddressByClientCIDRs = - new ArrayList(); + private List serverAddressByClientCIDRs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) - private List versions = new ArrayList(); + private List versions = new ArrayList<>(); public V1APIVersions apiVersion(String apiVersion) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java index bd6f78f77a..52e5d1a84d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java index e27d553d92..416d2b64b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java index f7b3c6bdd2..4f4b86284b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @@ -40,7 +40,7 @@ public V1AggregationRule clusterRoleSelectors(List clusterRoleS public V1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clusterRoleSelectorsItem) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); } this.clusterRoleSelectors.add(clusterRoleSelectorsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java index 05e83a6946..301478b1f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "AttachedVolume describes a volume attached to a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java index be8be43e9c..94dcd15998 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java index acab50d0f0..ca55df7b42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java index 2d29b25b3e..874f79932f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java index 7404894d68..9e2e870a04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java index 4271708697..6de7a4a4f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "BoundObjectReference is a reference to an object that a token is bound to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java index c19aa93db1..46af711885 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java index 129465908b..133fff9aed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesLi public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java index 4a62b6d614..1f6cd642ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @@ -184,7 +184,7 @@ public V1CSIDriverSpec volumeLifecycleModes(List volumeLifecycleModes) { public V1CSIDriverSpec addVolumeLifecycleModesItem(String volumeLifecycleModesItem) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + this.volumeLifecycleModes = new ArrayList<>(); } this.volumeLifecycleModes.add(volumeLifecycleModesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java index 4c43993b60..426e25d9fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java index c6e950f238..5393af9234 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CSINodeDriver holds information about the specification of one CSI driver installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @@ -129,7 +129,7 @@ public V1CSINodeDriver topologyKeys(List topologyKeys) { public V1CSINodeDriver addTopologyKeysItem(String topologyKeysItem) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); } this.topologyKeys.add(topologyKeysItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java index 0456cad418..9528cbd480 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1CSINodeList implements io.kubernetes.client.common.KubernetesList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java index d655c61a8f..9e74df479f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,12 +25,12 @@ "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_DRIVERS) - private List drivers = new ArrayList(); + private List drivers = new ArrayList<>(); public V1CSINodeSpec drivers(List drivers) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java index 6fa5de699f..7c8e1305c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "Represents storage that is managed by an external CSI volume driver (Beta feature)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @@ -238,7 +238,7 @@ public V1CSIPersistentVolumeSource volumeAttributes(Map volumeAt public V1CSIPersistentVolumeSource putVolumeAttributesItem( String key, String volumeAttributesItem) { if (this.volumeAttributes == null) { - this.volumeAttributes = new HashMap(); + this.volumeAttributes = new HashMap<>(); } this.volumeAttributes.put(key, volumeAttributesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java index a509eff4cd..deb765aab5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "Represents a source location of a volume to mount, managed by an external CSI driver") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @@ -152,7 +152,7 @@ public V1CSIVolumeSource volumeAttributes(Map volumeAttributes) public V1CSIVolumeSource putVolumeAttributesItem(String key, String volumeAttributesItem) { if (this.volumeAttributes == null) { - this.volumeAttributes = new HashMap(); + this.volumeAttributes = new HashMap<>(); } this.volumeAttributes.put(key, volumeAttributesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java index 07bb1b573a..e0d694ab20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @@ -43,7 +43,7 @@ public V1Capabilities add(List add) { public V1Capabilities addAddItem(String addItem) { if (this.add == null) { - this.add = new ArrayList(); + this.add = new ArrayList<>(); } this.add.add(addItem); return this; @@ -72,7 +72,7 @@ public V1Capabilities drop(List drop) { public V1Capabilities addDropItem(String dropItem) { if (this.drop == null) { - this.drop = new ArrayList(); + this.drop = new ArrayList<>(); } this.drop.add(dropItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java index 3b29978c89..e937efa63e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,12 +28,12 @@ "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) - private List monitors = new ArrayList(); + private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java index c0cff5ad4c..bbde58171e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,12 +28,12 @@ "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) - private List monitors = new ArrayList(); + private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java index 594e63721f..ac64dc5110 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -33,7 +33,7 @@ "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. Kubelets use this API to obtain: 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName). 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName). This API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java index 440939dd67..2730e9e272 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object @@ -26,17 +26,17 @@ "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) - private DateTime lastUpdateTime; + private OffsetDateTime lastUpdateTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -58,7 +58,8 @@ public class V1CertificateSigningRequestCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1CertificateSigningRequestCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1CertificateSigningRequestCondition lastTransitionTime( + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -75,15 +76,15 @@ public V1CertificateSigningRequestCondition lastTransitionTime(DateTime lastTran @ApiModelProperty( value = "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1CertificateSigningRequestCondition lastUpdateTime(DateTime lastUpdateTime) { + public V1CertificateSigningRequestCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; @@ -96,11 +97,11 @@ public V1CertificateSigningRequestCondition lastUpdateTime(DateTime lastUpdateTi */ @javax.annotation.Nullable @ApiModelProperty(value = "lastUpdateTime is the time of the last update to this condition") - public DateTime getLastUpdateTime() { + public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } - public void setLastUpdateTime(DateTime lastUpdateTime) { + public void setLastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java index 8084a27552..1368534628 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -36,7 +36,7 @@ public class V1CertificateSigningRequestList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java index e66887630c..27e9b4a41b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @@ -71,7 +71,7 @@ public V1CertificateSigningRequestSpec extra(Map> extra) { public V1CertificateSigningRequestSpec putExtraItem(String key, List extraItem) { if (this.extra == null) { - this.extra = new HashMap>(); + this.extra = new HashMap<>(); } this.extra.put(key, extraItem); return this; @@ -103,7 +103,7 @@ public V1CertificateSigningRequestSpec groups(List groups) { public V1CertificateSigningRequestSpec addGroupsItem(String groupsItem) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(groupsItem); return this; @@ -229,7 +229,7 @@ public V1CertificateSigningRequestSpec usages(List usages) { public V1CertificateSigningRequestSpec addUsagesItem(String usagesItem) { if (this.usages == null) { - this.usages = new ArrayList(); + this.usages = new ArrayList<>(); } this.usages.add(usagesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java index a0d39adf6b..b1ddd06999 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @@ -88,7 +88,7 @@ public V1CertificateSigningRequestStatus conditions( public V1CertificateSigningRequestStatus addConditionsItem( V1CertificateSigningRequestCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java index 7f359ea3c3..f588b1193d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java index 25890a45f2..34f1b30b8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java index eb7cd5881b..466b130512 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "ClientIPConfig represents the configurations of Client IP based session affinity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java index 7a7788b12e..66b4fc3814 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @@ -157,7 +157,7 @@ public V1ClusterRole rules(List rules) { public V1ClusterRole addRulesItem(V1PolicyRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java index babe003294..0b1179ecc9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -156,7 +156,7 @@ public V1ClusterRoleBinding subjects(List subjects) { public V1ClusterRoleBinding addSubjectsItem(V1Subject subjectsItem) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } this.subjects.add(subjectsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java index abdf6dbd15..48dfbf0bd6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1ClusterRoleBindingList implements io.kubernetes.client.common.Kub public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java index b7d80d990d..7d568ce278 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1ClusterRoleList implements io.kubernetes.client.common.Kubernetes public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java index df2f72de27..cfa2fb995f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Information about the condition of a component.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java index e3f27ac813..1ab2763d75 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -84,7 +84,7 @@ public V1ComponentStatus conditions(List conditions) { public V1ComponentStatus addConditionsItem(V1ComponentCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java index 5c135d7456..6d8c8e736e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -38,7 +38,7 @@ public class V1ComponentStatusList implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java index 7a019265b1..e0077c2a31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -89,7 +89,7 @@ public V1ConfigMap binaryData(Map binaryData) { public V1ConfigMap putBinaryDataItem(String key, byte[] binaryDataItem) { if (this.binaryData == null) { - this.binaryData = new HashMap(); + this.binaryData = new HashMap<>(); } this.binaryData.put(key, binaryDataItem); return this; @@ -124,7 +124,7 @@ public V1ConfigMap data(Map data) { public V1ConfigMap putDataItem(String key, String dataItem) { if (this.data == null) { - this.data = new HashMap(); + this.data = new HashMap<>(); } this.data.put(key, dataItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java index 459d36fa43..bbb36bb1c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java index 4320673b1c..1ac06ad371 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Selects a key from a ConfigMap.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java index 1c99a47209..5e8daa236d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesLi public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java index a0ae1fb91c..e98279ba3b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java index 30a1fecfae..a22650eb21 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -55,7 +55,7 @@ public V1ConfigMapProjection items(List items) { public V1ConfigMapProjection addItemsItem(V1KeyToPath itemsItem) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } this.items.add(itemsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java index 94f9876d11..c3779900db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @@ -87,7 +87,7 @@ public V1ConfigMapVolumeSource items(List items) { public V1ConfigMapVolumeSource addItemsItem(V1KeyToPath itemsItem) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } this.items.add(itemsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java index 6a2f79b8fd..b5f00fa2a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "A single application container that you want to run within a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @@ -144,7 +144,7 @@ public V1Container args(List args) { public V1Container addArgsItem(String argsItem) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } this.args.add(argsItem); return this; @@ -181,7 +181,7 @@ public V1Container command(List command) { public V1Container addCommandItem(String commandItem) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.add(commandItem); return this; @@ -218,7 +218,7 @@ public V1Container env(List env) { public V1Container addEnvItem(V1EnvVar envItem) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } this.env.add(envItem); return this; @@ -248,7 +248,7 @@ public V1Container envFrom(List envFrom) { public V1Container addEnvFromItem(V1EnvFromSource envFromItem) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } this.envFrom.add(envFromItem); return this; @@ -399,7 +399,7 @@ public V1Container ports(List ports) { public V1Container addPortsItem(V1ContainerPort portsItem) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } this.ports.add(portsItem); return this; @@ -649,7 +649,7 @@ public V1Container volumeDevices(List volumeDevices) { public V1Container addVolumeDevicesItem(V1VolumeDevice volumeDevicesItem) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } this.volumeDevices.add(volumeDevicesItem); return this; @@ -679,7 +679,7 @@ public V1Container volumeMounts(List volumeMounts) { public V1Container addVolumeMountsItem(V1VolumeMount volumeMountsItem) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } this.volumeMounts.add(volumeMountsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java index 6f81b751cb..99cd75c472 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,12 +23,12 @@ @ApiModel(description = "Describe a container image") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) - private List names = new ArrayList(); + private List names = new ArrayList<>(); public static final String SERIALIZED_NAME_SIZE_BYTES = "sizeBytes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java index 7205f31742..92e74b582d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ContainerPort represents a network port in a single container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java index 00df4cb1d4..09eb378255 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java index 5e72d0d808..ac0ac07281 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,21 +15,21 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** ContainerStateRunning is a running state of a container. */ @ApiModel(description = "ContainerStateRunning is a running state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) - private DateTime startedAt; + private OffsetDateTime startedAt; - public V1ContainerStateRunning startedAt(DateTime startedAt) { + public V1ContainerStateRunning startedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; return this; @@ -42,11 +42,11 @@ public V1ContainerStateRunning startedAt(DateTime startedAt) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time at which the container was last (re-)started") - public DateTime getStartedAt() { + public OffsetDateTime getStartedAt() { return startedAt; } - public void setStartedAt(DateTime startedAt) { + public void setStartedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java index f9473796ef..a09b442e0b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,14 +15,14 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** ContainerStateTerminated is a terminated state of a container. */ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @@ -37,7 +37,7 @@ public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_FINISHED_AT = "finishedAt"; @SerializedName(SERIALIZED_NAME_FINISHED_AT) - private DateTime finishedAt; + private OffsetDateTime finishedAt; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -57,7 +57,7 @@ public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) - private DateTime startedAt; + private OffsetDateTime startedAt; public V1ContainerStateTerminated containerID(String containerID) { @@ -102,7 +102,7 @@ public void setExitCode(Integer exitCode) { this.exitCode = exitCode; } - public V1ContainerStateTerminated finishedAt(DateTime finishedAt) { + public V1ContainerStateTerminated finishedAt(OffsetDateTime finishedAt) { this.finishedAt = finishedAt; return this; @@ -115,11 +115,11 @@ public V1ContainerStateTerminated finishedAt(DateTime finishedAt) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time at which the container last terminated") - public DateTime getFinishedAt() { + public OffsetDateTime getFinishedAt() { return finishedAt; } - public void setFinishedAt(DateTime finishedAt) { + public void setFinishedAt(OffsetDateTime finishedAt) { this.finishedAt = finishedAt; } @@ -186,7 +186,7 @@ public void setSignal(Integer signal) { this.signal = signal; } - public V1ContainerStateTerminated startedAt(DateTime startedAt) { + public V1ContainerStateTerminated startedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; return this; @@ -199,11 +199,11 @@ public V1ContainerStateTerminated startedAt(DateTime startedAt) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time at which previous execution of the container started") - public DateTime getStartedAt() { + public OffsetDateTime getStartedAt() { return startedAt; } - public void setStartedAt(DateTime startedAt) { + public void setStartedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java index 97be0695ed..0902f4c5fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java index 6e296c7679..44103aa111 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "ContainerStatus contains details for the current status of this container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ContainerStatus { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java index fff8838c35..fbeb8b6e89 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -32,7 +32,7 @@ "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java index 76c9495d32..7b1fb219aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,7 +35,7 @@ public class V1ControllerRevisionList implements io.kubernetes.client.common.Kub public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java index e6442987a5..0b9a72f113 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java index 4e62985566..5c0d75300f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "CustomResourceColumnDefinition specifies a column for server side printing.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java index e2b575cdd1..75189da88a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "CustomResourceConversion describes how to convert different versions of a CR.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java index f479527ded..f7d3743921 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java index 46685bd3d1..103daafa8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel( @@ -24,12 +24,12 @@ "CustomResourceDefinitionCondition contains details for the current condition of this pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -51,7 +51,7 @@ public class V1CustomResourceDefinitionCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1CustomResourceDefinitionCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1CustomResourceDefinitionCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -65,11 +65,11 @@ public V1CustomResourceDefinitionCondition lastTransitionTime(DateTime lastTrans @javax.annotation.Nullable @ApiModelProperty( value = "lastTransitionTime last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java index e16b49778b..53766e5d99 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,7 +35,7 @@ public class V1CustomResourceDefinitionList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java index bb0f26a205..663b8a0a05 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @@ -65,7 +65,7 @@ public V1CustomResourceDefinitionNames categories(List categories) { public V1CustomResourceDefinitionNames addCategoriesItem(String categoriesItem) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.add(categoriesItem); return this; @@ -172,7 +172,7 @@ public V1CustomResourceDefinitionNames shortNames(List shortNames) { public V1CustomResourceDefinitionNames addShortNamesItem(String shortNamesItem) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.add(shortNamesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java index ab643c99d3..c1a2f67bd9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionSpec describes how a user wants their resource to appear") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; @@ -55,8 +55,7 @@ public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) - private List versions = - new ArrayList(); + private List versions = new ArrayList<>(); public V1CustomResourceDefinitionSpec conversion(V1CustomResourceConversion conversion) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java index d6fbd24b94..2e511b30d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @@ -74,7 +74,7 @@ public V1CustomResourceDefinitionStatus conditions( public V1CustomResourceDefinitionStatus addConditionsItem( V1CustomResourceDefinitionCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; @@ -104,7 +104,7 @@ public V1CustomResourceDefinitionStatus storedVersions(List storedVersio public V1CustomResourceDefinitionStatus addStoredVersionsItem(String storedVersionsItem) { if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + this.storedVersions = new ArrayList<>(); } this.storedVersions.add(storedVersionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java index 459be2a841..e3ee401f10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @@ -76,7 +76,7 @@ public V1CustomResourceDefinitionVersion additionalPrinterColumns( public V1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem( V1CustomResourceColumnDefinition additionalPrinterColumnsItem) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); } this.additionalPrinterColumns.add(additionalPrinterColumnsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java index d4dd9d6a5c..f43055c2c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java index 219ebb25f4..cd17d65d91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "CustomResourceSubresources defines the status and scale subresources for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java index 787540065e..c4899de471 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "CustomResourceValidation is a list of validation methods for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java index c635882f39..315cf34c5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java index 09e3d43422..17a6d62aa4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java index a1c805245b..984319c818 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,19 +15,19 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -49,7 +49,7 @@ public class V1DaemonSetCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1DaemonSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -62,11 +62,11 @@ public V1DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java index f06905fd88..c725183a48 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesLi public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java index 3dce883360..6311b61ac3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java index 90672315a9..8911b351e4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @@ -108,7 +108,7 @@ public V1DaemonSetStatus conditions(List conditions) { public V1DaemonSetStatus addConditionsItem(V1DaemonSetCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java index fe95639282..fc81c8f0df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java index 8dad1d4b9c..02d4b7791e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -94,7 +94,7 @@ public V1DeleteOptions dryRun(List dryRun) { public V1DeleteOptions addDryRunItem(String dryRunItem) { if (this.dryRun == null) { - this.dryRun = new ArrayList(); + this.dryRun = new ArrayList<>(); } this.dryRun.add(dryRunItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java index cdff242de7..15cd390361 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java index 5df55cf302..84e9c6675b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,25 +15,25 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel( description = "DeploymentCondition describes the state of a deployment at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) - private DateTime lastUpdateTime; + private OffsetDateTime lastUpdateTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -55,7 +55,7 @@ public class V1DeploymentCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1DeploymentCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1DeploymentCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -68,15 +68,15 @@ public V1DeploymentCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { + public V1DeploymentCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; @@ -89,11 +89,11 @@ public V1DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "The last time this condition was updated.") - public DateTime getLastUpdateTime() { + public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } - public void setLastUpdateTime(DateTime lastUpdateTime) { + public void setLastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java index 0a54317bcf..a33c63f66f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DeploymentList is a list of Deployments.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1DeploymentList implements io.kubernetes.client.common.KubernetesL public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java index d8f911884b..4f99628287 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java index b9f2a08292..9ec6dda3ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @@ -121,7 +121,7 @@ public V1DeploymentStatus conditions(List conditions) { public V1DeploymentStatus addConditionsItem(V1DeploymentCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java index edb021d950..035505d79e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java index c1fa46a2a8..dff2d5ccf1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -43,7 +43,7 @@ public V1DownwardAPIProjection items(List items) { public V1DownwardAPIProjection addItemsItem(V1DownwardAPIVolumeFile itemsItem) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } this.items.add(itemsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java index b00ddbf6c2..5f05916bb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "DownwardAPIVolumeFile represents information to create the file containing the pod field") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java index 8037b7b288..0ea5449034 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @@ -76,7 +76,7 @@ public V1DownwardAPIVolumeSource items(List items) { public V1DownwardAPIVolumeSource addItemsItem(V1DownwardAPIVolumeFile itemsItem) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } this.items.add(itemsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java index 925fd364e5..507112b3f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java index 77297c6bf8..b7ff50fd1a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointAddress is a tuple that describes single IP address.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointPort.java index f8bda32bba..9ee09241d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointPort.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointPort is a tuple that describes a single port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java index 1546aa63e9..33cc4a2014 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -32,7 +32,7 @@ "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @@ -57,7 +57,7 @@ public V1EndpointSubset addresses(List addresses) { public V1EndpointSubset addAddressesItem(V1EndpointAddress addressesItem) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } this.addresses.add(addressesItem); return this; @@ -89,7 +89,7 @@ public V1EndpointSubset notReadyAddresses(List notReadyAddres public V1EndpointSubset addNotReadyAddressesItem(V1EndpointAddress notReadyAddressesItem) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + this.notReadyAddresses = new ArrayList<>(); } this.notReadyAddresses.add(notReadyAddressesItem); return this; @@ -122,7 +122,7 @@ public V1EndpointSubset ports(List ports) { public V1EndpointSubset addPortsItem(V1EndpointPort portsItem) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } this.ports.add(portsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java index 849f7aaf1d..8e6f7ed08f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -33,7 +33,7 @@ "Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ]") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -136,7 +136,7 @@ public V1Endpoints subsets(List subsets) { public V1Endpoints addSubsetsItem(V1EndpointSubset subsetsItem) { if (this.subsets == null) { - this.subsets = new ArrayList(); + this.subsets = new ArrayList<>(); } this.subsets.add(subsetsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java index 84c34bed92..5a6b44408f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EndpointsList is a list of endpoints.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1EndpointsList implements io.kubernetes.client.common.KubernetesLi public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java index d509498634..01779640d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java index dd113249f5..35cac456fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java index 76ec9808fd..86f2f31a5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java index ea566d163b..a083d33a81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -33,7 +33,7 @@ "An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @@ -159,7 +159,7 @@ public V1EphemeralContainer args(List args) { public V1EphemeralContainer addArgsItem(String argsItem) { if (this.args == null) { - this.args = new ArrayList(); + this.args = new ArrayList<>(); } this.args.add(argsItem); return this; @@ -196,7 +196,7 @@ public V1EphemeralContainer command(List command) { public V1EphemeralContainer addCommandItem(String commandItem) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.add(commandItem); return this; @@ -233,7 +233,7 @@ public V1EphemeralContainer env(List env) { public V1EphemeralContainer addEnvItem(V1EnvVar envItem) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } this.env.add(envItem); return this; @@ -263,7 +263,7 @@ public V1EphemeralContainer envFrom(List envFrom) { public V1EphemeralContainer addEnvFromItem(V1EnvFromSource envFromItem) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } this.envFrom.add(envFromItem); return this; @@ -411,7 +411,7 @@ public V1EphemeralContainer ports(List ports) { public V1EphemeralContainer addPortsItem(V1ContainerPort portsItem) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } this.ports.add(portsItem); return this; @@ -681,7 +681,7 @@ public V1EphemeralContainer volumeDevices(List volumeDevices) { public V1EphemeralContainer addVolumeDevicesItem(V1VolumeDevice volumeDevicesItem) { if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + this.volumeDevices = new ArrayList<>(); } this.volumeDevices.add(volumeDevicesItem); return this; @@ -711,7 +711,7 @@ public V1EphemeralContainer volumeMounts(List volumeMounts) { public V1EphemeralContainer addVolumeMountsItem(V1VolumeMount volumeMountsItem) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } this.volumeMounts.add(volumeMountsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java index 730f8b00f0..76bdc05bef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "Represents an ephemeral volume that is handled by a normal storage driver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java index b941c68d2e..b664ce5721 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EventSource contains information for an event.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java index 8bafee7fe9..58239f6abc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ExecAction describes a \"run in container\" action.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @@ -38,7 +38,7 @@ public V1ExecAction command(List command) { public V1ExecAction addCommandItem(String commandItem) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList<>(); } this.command.add(commandItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java index 272fdb80e6..8a0b2cd29f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "ExternalDocumentation allows referencing an external resource for extended documentation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java index 2c251524f2..44d69b48a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @@ -133,7 +133,7 @@ public V1FCVolumeSource targetWWNs(List targetWWNs) { public V1FCVolumeSource addTargetWWNsItem(String targetWWNsItem) { if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); + this.targetWWNs = new ArrayList<>(); } this.targetWWNs.add(targetWWNsItem); return this; @@ -162,7 +162,7 @@ public V1FCVolumeSource wwids(List wwids) { public V1FCVolumeSource addWwidsItem(String wwidsItem) { if (this.wwids == null) { - this.wwids = new ArrayList(); + this.wwids = new ArrayList<>(); } this.wwids.add(wwidsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java index 3308d45768..6458551e17 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @@ -110,7 +110,7 @@ public V1FlexPersistentVolumeSource options(Map options) { public V1FlexPersistentVolumeSource putOptionsItem(String key, String optionsItem) { if (this.options == null) { - this.options = new HashMap(); + this.options = new HashMap<>(); } this.options.put(key, optionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java index db9a8e7269..82da050207 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @@ -110,7 +110,7 @@ public V1FlexVolumeSource options(Map options) { public V1FlexVolumeSource putOptionsItem(String key, String optionsItem) { if (this.options == null) { - this.options = new HashMap(); + this.options = new HashMap<>(); } this.options.put(key, optionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java index cc1fcd4f5f..d99677a01d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java index 34f9ba5dcf..d8df673ec3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java index 8979bef4c6..459518f36d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java index 093fb53e96..7ff2766681 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java index d225b95534..57d4d32afe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java index 70ca379f04..77ed49c912 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java index 28723e8d70..506e717268 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @@ -83,7 +83,7 @@ public V1HTTPGetAction httpHeaders(List httpHeaders) { public V1HTTPGetAction addHttpHeadersItem(V1HTTPHeader httpHeadersItem) { if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); + this.httpHeaders = new ArrayList<>(); } this.httpHeaders.add(httpHeadersItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java index ef8c7e3356..9168723e82 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java index 07247f5da8..0a6afea0d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java index 65cee11a3a..8d88be78d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,12 +30,12 @@ "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) - private List paths = new ArrayList(); + private List paths = new ArrayList<>(); public V1HTTPIngressRuleValue paths(List paths) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Handler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Handler.java index ce48125e01..900c0f9365 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Handler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Handler.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Handler defines a specific action that should be taken") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Handler { public static final String SERIALIZED_NAME_EXEC = "exec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java index 529247c1b3..feddc06d4e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "configuration of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java index 3f876ac556..951971a4f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1HorizontalPodAutoscalerList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java index 12f0a9959a..4090392ff4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "specification of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java index fd95822079..aa679793fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,14 +15,14 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** current status of a horizontal pod autoscaler */ @ApiModel(description = "current status of a horizontal pod autoscaler") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; @@ -43,7 +43,7 @@ public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) - private DateTime lastScaleTime; + private OffsetDateTime lastScaleTime; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @@ -119,7 +119,7 @@ public void setDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; } - public V1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { + public V1HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return this; @@ -135,11 +135,11 @@ public V1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { @ApiModelProperty( value = "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.") - public DateTime getLastScaleTime() { + public OffsetDateTime getLastScaleTime() { return lastScaleTime; } - public void setLastScaleTime(DateTime lastScaleTime) { + public void setLastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java index 80729859f8..65956f81fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @@ -48,7 +48,7 @@ public V1HostAlias hostnames(List hostnames) { public V1HostAlias addHostnamesItem(String hostnamesItem) { if (this.hostnames == null) { - this.hostnames = new ArrayList(); + this.hostnames = new ArrayList<>(); } this.hostnames.add(hostnamesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java index ab86e93c69..ba1175865e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java index 18c2adcc08..01a17c00e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; @@ -74,7 +74,7 @@ public V1IPBlock except(List except) { public V1IPBlock addExceptItem(String exceptItem) { if (this.except == null) { - this.except = new ArrayList(); + this.except = new ArrayList<>(); } this.except.add(exceptItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java index d4f9ec7a0c..4e8ab1d0d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @@ -248,7 +248,7 @@ public V1ISCSIPersistentVolumeSource portals(List portals) { public V1ISCSIPersistentVolumeSource addPortalsItem(String portalsItem) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } this.portals.add(portalsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java index 16f0da480c..7a21420574 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @@ -248,7 +248,7 @@ public V1ISCSIVolumeSource portals(List portals) { public V1ISCSIVolumeSource addPortalsItem(String portalsItem) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList<>(); } this.portals.add(portalsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java index a8c2aee980..35f717c85b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java index c261ce912c..92e2c114c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java index 7f6d22d73e..0f091ee737 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java index c017887aa2..8de3938d36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1IngressClassList implements io.kubernetes.client.common.Kubernete public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java index 73b8ff40ac..bded25814f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java index e01c53158f..50b3c391a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressList is a collection of Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1IngressList implements io.kubernetes.client.common.KubernetesList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java index 7386528a49..95b2d56feb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java index 952c12eb8d..fbec8cc721 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java index 2667517a15..781e967efe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @@ -104,7 +104,7 @@ public V1IngressSpec rules(List rules) { public V1IngressSpec addRulesItem(V1IngressRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; @@ -136,7 +136,7 @@ public V1IngressSpec tls(List tls) { public V1IngressSpec addTlsItem(V1IngressTLS tlsItem) { if (this.tls == null) { - this.tls = new ArrayList(); + this.tls = new ArrayList<>(); } this.tls.add(tlsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java index cf8b4f5e82..9911ac9f3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java index 39926e66db..686db71389 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "IngressTLS describes the transport layer security associated with an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @@ -44,7 +44,7 @@ public V1IngressTLS hosts(List hosts) { public V1IngressTLS addHostsItem(String hostsItem) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList<>(); } this.hosts.add(hostsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java index b634a02ce5..c617afde60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @@ -346,7 +346,7 @@ public V1JSONSchemaProps allOf(List allOf) { public V1JSONSchemaProps addAllOfItem(V1JSONSchemaProps allOfItem) { if (this.allOf == null) { - this.allOf = new ArrayList(); + this.allOf = new ArrayList<>(); } this.allOf.add(allOfItem); return this; @@ -375,7 +375,7 @@ public V1JSONSchemaProps anyOf(List anyOf) { public V1JSONSchemaProps addAnyOfItem(V1JSONSchemaProps anyOfItem) { if (this.anyOf == null) { - this.anyOf = new ArrayList(); + this.anyOf = new ArrayList<>(); } this.anyOf.add(anyOfItem); return this; @@ -429,7 +429,7 @@ public V1JSONSchemaProps definitions(Map definitions) public V1JSONSchemaProps putDefinitionsItem(String key, V1JSONSchemaProps definitionsItem) { if (this.definitions == null) { - this.definitions = new HashMap(); + this.definitions = new HashMap<>(); } this.definitions.put(key, definitionsItem); return this; @@ -458,7 +458,7 @@ public V1JSONSchemaProps dependencies(Map dependencies) { public V1JSONSchemaProps putDependenciesItem(String key, Object dependenciesItem) { if (this.dependencies == null) { - this.dependencies = new HashMap(); + this.dependencies = new HashMap<>(); } this.dependencies.put(key, dependenciesItem); return this; @@ -508,7 +508,7 @@ public V1JSONSchemaProps _enum(List _enum) { public V1JSONSchemaProps addEnumItem(Object _enumItem) { if (this._enum == null) { - this._enum = new ArrayList(); + this._enum = new ArrayList<>(); } this._enum.add(_enumItem); return this; @@ -948,7 +948,7 @@ public V1JSONSchemaProps oneOf(List oneOf) { public V1JSONSchemaProps addOneOfItem(V1JSONSchemaProps oneOfItem) { if (this.oneOf == null) { - this.oneOf = new ArrayList(); + this.oneOf = new ArrayList<>(); } this.oneOf.add(oneOfItem); return this; @@ -999,7 +999,7 @@ public V1JSONSchemaProps patternProperties(Map patter public V1JSONSchemaProps putPatternPropertiesItem( String key, V1JSONSchemaProps patternPropertiesItem) { if (this.patternProperties == null) { - this.patternProperties = new HashMap(); + this.patternProperties = new HashMap<>(); } this.patternProperties.put(key, patternPropertiesItem); return this; @@ -1028,7 +1028,7 @@ public V1JSONSchemaProps properties(Map properties) { public V1JSONSchemaProps putPropertiesItem(String key, V1JSONSchemaProps propertiesItem) { if (this.properties == null) { - this.properties = new HashMap(); + this.properties = new HashMap<>(); } this.properties.put(key, propertiesItem); return this; @@ -1057,7 +1057,7 @@ public V1JSONSchemaProps required(List required) { public V1JSONSchemaProps addRequiredItem(String requiredItem) { if (this.required == null) { - this.required = new ArrayList(); + this.required = new ArrayList<>(); } this.required.add(requiredItem); return this; @@ -1202,7 +1202,7 @@ public V1JSONSchemaProps xKubernetesListMapKeys(List xKubernetesListMapK public V1JSONSchemaProps addXKubernetesListMapKeysItem(String xKubernetesListMapKeysItem) { if (this.xKubernetesListMapKeys == null) { - this.xKubernetesListMapKeys = new ArrayList(); + this.xKubernetesListMapKeys = new ArrayList<>(); } this.xKubernetesListMapKeys.add(xKubernetesListMapKeysItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java index 2e44118755..a4b44a768c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Job represents the configuration of a single job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java index 4d4d217adb..602739a084 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,24 +15,24 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** JobCondition describes current state of a job. */ @ApiModel(description = "JobCondition describes current state of a job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) - private DateTime lastProbeTime; + private OffsetDateTime lastProbeTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -54,7 +54,7 @@ public class V1JobCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1JobCondition lastProbeTime(DateTime lastProbeTime) { + public V1JobCondition lastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return this; @@ -67,15 +67,15 @@ public V1JobCondition lastProbeTime(DateTime lastProbeTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition was checked.") - public DateTime getLastProbeTime() { + public OffsetDateTime getLastProbeTime() { return lastProbeTime; } - public void setLastProbeTime(DateTime lastProbeTime) { + public void setLastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } - public V1JobCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1JobCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -88,11 +88,11 @@ public V1JobCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transit from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java index f14186e7c6..3d9efa721d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "JobList is a collection of jobs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1JobList implements io.kubernetes.client.common.KubernetesListObje public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java index 657e7b9e5a..103a5143d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "JobSpec describes how the job execution will look like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java index e2aba80203..ddbb2bd1ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,16 +15,16 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** JobStatus represents the current state of a Job. */ @ApiModel(description = "JobStatus represents the current state of a Job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @@ -34,7 +34,7 @@ public class V1JobStatus { public static final String SERIALIZED_NAME_COMPLETION_TIME = "completionTime"; @SerializedName(SERIALIZED_NAME_COMPLETION_TIME) - private DateTime completionTime; + private OffsetDateTime completionTime; public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -49,7 +49,7 @@ public class V1JobStatus { public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) - private DateTime startTime; + private OffsetDateTime startTime; public static final String SERIALIZED_NAME_SUCCEEDED = "succeeded"; @@ -77,7 +77,7 @@ public void setActive(Integer active) { this.active = active; } - public V1JobStatus completionTime(DateTime completionTime) { + public V1JobStatus completionTime(OffsetDateTime completionTime) { this.completionTime = completionTime; return this; @@ -93,11 +93,11 @@ public V1JobStatus completionTime(DateTime completionTime) { @ApiModelProperty( value = "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.") - public DateTime getCompletionTime() { + public OffsetDateTime getCompletionTime() { return completionTime; } - public void setCompletionTime(DateTime completionTime) { + public void setCompletionTime(OffsetDateTime completionTime) { this.completionTime = completionTime; } @@ -109,7 +109,7 @@ public V1JobStatus conditions(List conditions) { public V1JobStatus addConditionsItem(V1JobCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; @@ -154,7 +154,7 @@ public void setFailed(Integer failed) { this.failed = failed; } - public V1JobStatus startTime(DateTime startTime) { + public V1JobStatus startTime(OffsetDateTime startTime) { this.startTime = startTime; return this; @@ -171,11 +171,11 @@ public V1JobStatus startTime(DateTime startTime) { @ApiModelProperty( value = "Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.") - public DateTime getStartTime() { + public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(DateTime startTime) { + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java index ebeb58eab2..9559d9d277 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Maps a string key to a path within a volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java index 778f2e4301..0e948ae0fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @@ -51,7 +51,7 @@ public V1LabelSelector matchExpressions(List matchEx public V1LabelSelector addMatchExpressionsItem(V1LabelSelectorRequirement matchExpressionsItem) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } this.matchExpressions.add(matchExpressionsItem); return this; @@ -82,7 +82,7 @@ public V1LabelSelector matchLabels(Map matchLabels) { public V1LabelSelector putMatchLabelsItem(String key, String matchLabelsItem) { if (this.matchLabels == null) { - this.matchLabels = new HashMap(); + this.matchLabels = new HashMap<>(); } this.matchLabels.put(key, matchLabelsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java index e35ccc0ca8..ccc61d7f7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @@ -97,7 +97,7 @@ public V1LabelSelectorRequirement values(List values) { public V1LabelSelectorRequirement addValuesItem(String valuesItem) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(valuesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java index e5c2902307..3fbddf7cd6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Lease defines a lease concept.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java index 6ca610d427..01ace6112c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "LeaseList is a list of Lease objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1LeaseList implements io.kubernetes.client.common.KubernetesListOb public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java index 20a72df06f..5ce12c4f27 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,19 +15,19 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) - private DateTime acquireTime; + private OffsetDateTime acquireTime; public static final String SERIALIZED_NAME_HOLDER_IDENTITY = "holderIdentity"; @@ -47,9 +47,9 @@ public class V1LeaseSpec { public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; @SerializedName(SERIALIZED_NAME_RENEW_TIME) - private DateTime renewTime; + private OffsetDateTime renewTime; - public V1LeaseSpec acquireTime(DateTime acquireTime) { + public V1LeaseSpec acquireTime(OffsetDateTime acquireTime) { this.acquireTime = acquireTime; return this; @@ -62,11 +62,11 @@ public V1LeaseSpec acquireTime(DateTime acquireTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "acquireTime is a time when the current lease was acquired.") - public DateTime getAcquireTime() { + public OffsetDateTime getAcquireTime() { return acquireTime; } - public void setAcquireTime(DateTime acquireTime) { + public void setAcquireTime(OffsetDateTime acquireTime) { this.acquireTime = acquireTime; } @@ -138,7 +138,7 @@ public void setLeaseTransitions(Integer leaseTransitions) { this.leaseTransitions = leaseTransitions; } - public V1LeaseSpec renewTime(DateTime renewTime) { + public V1LeaseSpec renewTime(OffsetDateTime renewTime) { this.renewTime = renewTime; return this; @@ -152,11 +152,11 @@ public V1LeaseSpec renewTime(DateTime renewTime) { @javax.annotation.Nullable @ApiModelProperty( value = "renewTime is a time when the current holder of a lease has last updated the lease.") - public DateTime getRenewTime() { + public OffsetDateTime getRenewTime() { return renewTime; } - public void setRenewTime(DateTime renewTime) { + public void setRenewTime(OffsetDateTime renewTime) { this.renewTime = renewTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java index 6ed0acf430..a45bfbe605 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java index 0c009379a1..ba607ac268 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java index a246bd9408..f884e85fcc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @@ -66,7 +66,7 @@ public V1LimitRangeItem _default(Map _default) { public V1LimitRangeItem putDefaultItem(String key, Quantity _defaultItem) { if (this._default == null) { - this._default = new HashMap(); + this._default = new HashMap<>(); } this._default.put(key, _defaultItem); return this; @@ -97,7 +97,7 @@ public V1LimitRangeItem defaultRequest(Map defaultRequest) { public V1LimitRangeItem putDefaultRequestItem(String key, Quantity defaultRequestItem) { if (this.defaultRequest == null) { - this.defaultRequest = new HashMap(); + this.defaultRequest = new HashMap<>(); } this.defaultRequest.put(key, defaultRequestItem); return this; @@ -129,7 +129,7 @@ public V1LimitRangeItem max(Map max) { public V1LimitRangeItem putMaxItem(String key, Quantity maxItem) { if (this.max == null) { - this.max = new HashMap(); + this.max = new HashMap<>(); } this.max.put(key, maxItem); return this; @@ -159,7 +159,7 @@ public V1LimitRangeItem maxLimitRequestRatio(Map maxLimitReque public V1LimitRangeItem putMaxLimitRequestRatioItem( String key, Quantity maxLimitRequestRatioItem) { if (this.maxLimitRequestRatio == null) { - this.maxLimitRequestRatio = new HashMap(); + this.maxLimitRequestRatio = new HashMap<>(); } this.maxLimitRequestRatio.put(key, maxLimitRequestRatioItem); return this; @@ -192,7 +192,7 @@ public V1LimitRangeItem min(Map min) { public V1LimitRangeItem putMinItem(String key, Quantity minItem) { if (this.min == null) { - this.min = new HashMap(); + this.min = new HashMap<>(); } this.min.put(key, minItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java index 9b7b4dc432..38e86b01a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesL public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java index ad81c5ab1c..178e3d0820 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,12 +24,12 @@ description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) - private List limits = new ArrayList(); + private List limits = new ArrayList<>(); public V1LimitRangeSpec limits(List limits) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java index 5c178f5d90..01cc33970e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java index 5074e77105..70cd570d85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java index d0ae599858..79c02d1943 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @@ -38,7 +38,7 @@ public V1LoadBalancerStatus ingress(List ingress) { public V1LoadBalancerStatus addIngressItem(V1LoadBalancerIngress ingressItem) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } this.ingress.add(ingressItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java index 5d3935a9cf..8a641097e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java index d54d813362..3321a3facc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java index 0eadcdd5b0..737c26cf52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "Local represents directly-attached storage with node affinity (Beta feature)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java index b59594fc04..efba07f185 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the @@ -27,7 +27,7 @@ "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -57,7 +57,7 @@ public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) - private DateTime time; + private OffsetDateTime time; public V1ManagedFieldsEntry apiVersion(String apiVersion) { @@ -175,7 +175,7 @@ public void setOperation(String operation) { this.operation = operation; } - public V1ManagedFieldsEntry time(DateTime time) { + public V1ManagedFieldsEntry time(OffsetDateTime time) { this.time = time; return this; @@ -191,11 +191,11 @@ public V1ManagedFieldsEntry time(DateTime time) { @ApiModelProperty( value = "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'") - public DateTime getTime() { + public OffsetDateTime getTime() { return time; } - public void setTime(DateTime time) { + public void setTime(OffsetDateTime time) { this.time = time; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java index 2f511dea79..977d019e87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,12 +27,12 @@ "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) - private List admissionReviewVersions = new ArrayList(); + private List admissionReviewVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @@ -304,7 +304,7 @@ public V1MutatingWebhook rules(List rules) { public V1MutatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java index 539a810659..256de296d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -132,7 +132,7 @@ public V1MutatingWebhookConfiguration webhooks(List webhooks) public V1MutatingWebhookConfiguration addWebhooksItem(V1MutatingWebhook webhooksItem) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } this.webhooks.add(webhooksItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java index a02cf8dd8f..cad7d9203d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,8 +35,7 @@ public class V1MutatingWebhookConfigurationList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java index e2fecc971a..bf8bf12837 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java index b72a981cb1..50b5d046e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java index 67118a26fe..55dabbfb90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,19 +15,19 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** NamespaceCondition contains details about state of namespace. */ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -49,7 +49,7 @@ public class V1NamespaceCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1NamespaceCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1NamespaceCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -65,11 +65,11 @@ public V1NamespaceCondition lastTransitionTime(DateTime lastTransitionTime) { @ApiModelProperty( value = "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java index f3751dad11..68d6e4117c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceList is a list of Namespaces.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1NamespaceList implements io.kubernetes.client.common.KubernetesLi public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java index 4f72aca109..9b355ee277 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @@ -38,7 +38,7 @@ public V1NamespaceSpec finalizers(List finalizers) { public V1NamespaceSpec addFinalizersItem(String finalizersItem) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } this.finalizers.add(finalizersItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java index ea141ac234..dbc6541098 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -43,7 +43,7 @@ public V1NamespaceStatus conditions(List conditions) { public V1NamespaceStatus addConditionsItem(V1NamespaceCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java index 15950692e0..143a342fe8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java index df7f66cf2e..516af0ca4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @@ -49,7 +49,7 @@ public V1NetworkPolicyEgressRule ports(List ports) { public V1NetworkPolicyEgressRule addPortsItem(V1NetworkPolicyPort portsItem) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } this.ports.add(portsItem); return this; @@ -83,7 +83,7 @@ public V1NetworkPolicyEgressRule to(List to) { public V1NetworkPolicyEgressRule addToItem(V1NetworkPolicyPeer toItem) { if (this.to == null) { - this.to = new ArrayList(); + this.to = new ArrayList<>(); } this.to.add(toItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java index 4035b83c06..5079e62dae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @@ -48,7 +48,7 @@ public V1NetworkPolicyIngressRule from(List from) { public V1NetworkPolicyIngressRule addFromItem(V1NetworkPolicyPeer fromItem) { if (this.from == null) { - this.from = new ArrayList(); + this.from = new ArrayList<>(); } this.from.add(fromItem); return this; @@ -83,7 +83,7 @@ public V1NetworkPolicyIngressRule ports(List ports) { public V1NetworkPolicyIngressRule addPortsItem(V1NetworkPolicyPort portsItem) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } this.ports.add(portsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java index b59d199817..42ea7960f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1NetworkPolicyList implements io.kubernetes.client.common.Kubernet public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java index bbf6dc292a..3ec5f9d383 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java index 9869ffea65..eaf0600696 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_PORT = "port"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java index 61124dba21..77f00b70bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @@ -53,7 +53,7 @@ public V1NetworkPolicySpec egress(List egress) { public V1NetworkPolicySpec addEgressItem(V1NetworkPolicyEgressRule egressItem) { if (this.egress == null) { - this.egress = new ArrayList(); + this.egress = new ArrayList<>(); } this.egress.add(egressItem); return this; @@ -89,7 +89,7 @@ public V1NetworkPolicySpec ingress(List ingress) { public V1NetworkPolicySpec addIngressItem(V1NetworkPolicyIngressRule ingressItem) { if (this.ingress == null) { - this.ingress = new ArrayList(); + this.ingress = new ArrayList<>(); } this.ingress.add(ingressItem); return this; @@ -145,7 +145,7 @@ public V1NetworkPolicySpec policyTypes(List policyTypes) { public V1NetworkPolicySpec addPolicyTypesItem(String policyTypesItem) { if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + this.policyTypes = new ArrayList<>(); } this.policyTypes.add(policyTypesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java index 019a849bcb..44ecb5bb28 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java index 91b9f457c2..e032d894ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NodeAddress contains information for the node's address.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java index b139dafaa0..471a48052b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @@ -48,8 +48,7 @@ public V1NodeAffinity preferredDuringSchedulingIgnoredDuringExecution( public V1NodeAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( V1PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecutionItem) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } this.preferredDuringSchedulingIgnoredDuringExecution.add( preferredDuringSchedulingIgnoredDuringExecutionItem); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java index fd049c83af..f2dd5496b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,24 +15,24 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** NodeCondition contains condition information for a node. */ @ApiModel(description = "NodeCondition contains condition information for a node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) - private DateTime lastHeartbeatTime; + private OffsetDateTime lastHeartbeatTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -54,7 +54,7 @@ public class V1NodeCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1NodeCondition lastHeartbeatTime(DateTime lastHeartbeatTime) { + public V1NodeCondition lastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { this.lastHeartbeatTime = lastHeartbeatTime; return this; @@ -67,15 +67,15 @@ public V1NodeCondition lastHeartbeatTime(DateTime lastHeartbeatTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time we got an update on a given condition.") - public DateTime getLastHeartbeatTime() { + public OffsetDateTime getLastHeartbeatTime() { return lastHeartbeatTime; } - public void setLastHeartbeatTime(DateTime lastHeartbeatTime) { + public void setLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { this.lastHeartbeatTime = lastHeartbeatTime; } - public V1NodeCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1NodeCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -88,11 +88,11 @@ public V1NodeCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transit from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java index 8be733f5de..31d9adb912 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java index dc6bfadaf0..d5833dda67 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java index 890efb2976..2cc25e5d29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java index b67c4a2a8e..c12c8a2597 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "NodeList is the whole list of all Nodes which have been registered with master.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1NodeList implements io.kubernetes.client.common.KubernetesListObj public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java index 19bae3bfdf..10fb8ca689 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,12 +28,12 @@ "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) - private List nodeSelectorTerms = new ArrayList(); + private List nodeSelectorTerms = new ArrayList<>(); public V1NodeSelector nodeSelectorTerms(List nodeSelectorTerms) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java index 44292c1360..3b4d75f23f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @@ -97,7 +97,7 @@ public V1NodeSelectorRequirement values(List values) { public V1NodeSelectorRequirement addValuesItem(String valuesItem) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(valuesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java index f07efc1711..7264e520bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @@ -49,7 +49,7 @@ public V1NodeSelectorTerm matchExpressions(List match public V1NodeSelectorTerm addMatchExpressionsItem( V1NodeSelectorRequirement matchExpressionsItem) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } this.matchExpressions.add(matchExpressionsItem); return this; @@ -78,7 +78,7 @@ public V1NodeSelectorTerm matchFields(List matchField public V1NodeSelectorTerm addMatchFieldsItem(V1NodeSelectorRequirement matchFieldsItem) { if (this.matchFields == null) { - this.matchFields = new ArrayList(); + this.matchFields = new ArrayList<>(); } this.matchFields.add(matchFieldsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java index c967fb39e2..6ce2275df5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @@ -134,7 +134,7 @@ public V1NodeSpec podCIDRs(List podCIDRs) { public V1NodeSpec addPodCIDRsItem(String podCIDRsItem) { if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); + this.podCIDRs = new ArrayList<>(); } this.podCIDRs.add(podCIDRsItem); return this; @@ -191,7 +191,7 @@ public V1NodeSpec taints(List taints) { public V1NodeSpec addTaintsItem(V1Taint taintsItem) { if (this.taints == null) { - this.taints = new ArrayList(); + this.taints = new ArrayList<>(); } this.taints.add(taintsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java index 11186fffaf..a38021b9fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ @ApiModel(description = "NodeStatus is information about the current status of a node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @@ -91,7 +91,7 @@ public V1NodeStatus addresses(List addresses) { public V1NodeStatus addAddressesItem(V1NodeAddress addressesItem) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList<>(); } this.addresses.add(addressesItem); return this; @@ -126,7 +126,7 @@ public V1NodeStatus allocatable(Map allocatable) { public V1NodeStatus putAllocatableItem(String key, Quantity allocatableItem) { if (this.allocatable == null) { - this.allocatable = new HashMap(); + this.allocatable = new HashMap<>(); } this.allocatable.put(key, allocatableItem); return this; @@ -158,7 +158,7 @@ public V1NodeStatus capacity(Map capacity) { public V1NodeStatus putCapacityItem(String key, Quantity capacityItem) { if (this.capacity == null) { - this.capacity = new HashMap(); + this.capacity = new HashMap<>(); } this.capacity.put(key, capacityItem); return this; @@ -190,7 +190,7 @@ public V1NodeStatus conditions(List conditions) { public V1NodeStatus addConditionsItem(V1NodeCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; @@ -264,7 +264,7 @@ public V1NodeStatus images(List images) { public V1NodeStatus addImagesItem(V1ContainerImage imagesItem) { if (this.images == null) { - this.images = new ArrayList(); + this.images = new ArrayList<>(); } this.images.add(imagesItem); return this; @@ -339,7 +339,7 @@ public V1NodeStatus volumesAttached(List volumesAttached) { public V1NodeStatus addVolumesAttachedItem(V1AttachedVolume volumesAttachedItem) { if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); + this.volumesAttached = new ArrayList<>(); } this.volumesAttached.add(volumesAttachedItem); return this; @@ -368,7 +368,7 @@ public V1NodeStatus volumesInUse(List volumesInUse) { public V1NodeStatus addVolumesInUseItem(String volumesInUseItem) { if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); + this.volumesInUse = new ArrayList<>(); } this.volumesInUse.add(volumesInUseItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java index c2434c086b..2555a90a67 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java index 21b58640a0..ea7a1bbdac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java index 147e90ff16..f36e646b81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "NonResourceRule holds information that describes a rule for the non-resource") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @@ -34,7 +34,7 @@ public class V1NonResourceRule { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1NonResourceRule nonResourceURLs(List nonResourceURLs) { @@ -44,7 +44,7 @@ public V1NonResourceRule nonResourceURLs(List nonResourceURLs) { public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(nonResourceURLsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java index eb080d0c8f..8e8a0eb0eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java index 1d7341515f..a89f209505 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,12 +15,12 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; -import org.joda.time.DateTime; /** * ObjectMeta is metadata that all persisted resources must have, which includes all objects users @@ -31,7 +31,7 @@ "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @@ -46,7 +46,7 @@ public class V1ObjectMeta { public static final String SERIALIZED_NAME_CREATION_TIMESTAMP = "creationTimestamp"; @SerializedName(SERIALIZED_NAME_CREATION_TIMESTAMP) - private DateTime creationTimestamp; + private OffsetDateTime creationTimestamp; public static final String SERIALIZED_NAME_DELETION_GRACE_PERIOD_SECONDS = "deletionGracePeriodSeconds"; @@ -57,7 +57,7 @@ public class V1ObjectMeta { public static final String SERIALIZED_NAME_DELETION_TIMESTAMP = "deletionTimestamp"; @SerializedName(SERIALIZED_NAME_DELETION_TIMESTAMP) - private DateTime deletionTimestamp; + private OffsetDateTime deletionTimestamp; public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @@ -122,7 +122,7 @@ public V1ObjectMeta annotations(Map annotations) { public V1ObjectMeta putAnnotationsItem(String key, String annotationsItem) { if (this.annotations == null) { - this.annotations = new HashMap(); + this.annotations = new HashMap<>(); } this.annotations.put(key, annotationsItem); return this; @@ -172,7 +172,7 @@ public void setClusterName(String clusterName) { this.clusterName = clusterName; } - public V1ObjectMeta creationTimestamp(DateTime creationTimestamp) { + public V1ObjectMeta creationTimestamp(OffsetDateTime creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; @@ -191,11 +191,11 @@ public V1ObjectMeta creationTimestamp(DateTime creationTimestamp) { @ApiModelProperty( value = "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") - public DateTime getCreationTimestamp() { + public OffsetDateTime getCreationTimestamp() { return creationTimestamp; } - public void setCreationTimestamp(DateTime creationTimestamp) { + public void setCreationTimestamp(OffsetDateTime creationTimestamp) { this.creationTimestamp = creationTimestamp; } @@ -223,7 +223,7 @@ public void setDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; } - public V1ObjectMeta deletionTimestamp(DateTime deletionTimestamp) { + public V1ObjectMeta deletionTimestamp(OffsetDateTime deletionTimestamp) { this.deletionTimestamp = deletionTimestamp; return this; @@ -252,11 +252,11 @@ public V1ObjectMeta deletionTimestamp(DateTime deletionTimestamp) { @ApiModelProperty( value = "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") - public DateTime getDeletionTimestamp() { + public OffsetDateTime getDeletionTimestamp() { return deletionTimestamp; } - public void setDeletionTimestamp(DateTime deletionTimestamp) { + public void setDeletionTimestamp(OffsetDateTime deletionTimestamp) { this.deletionTimestamp = deletionTimestamp; } @@ -268,7 +268,7 @@ public V1ObjectMeta finalizers(List finalizers) { public V1ObjectMeta addFinalizersItem(String finalizersItem) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList<>(); } this.finalizers.add(finalizersItem); return this; @@ -364,7 +364,7 @@ public V1ObjectMeta labels(Map labels) { public V1ObjectMeta putLabelsItem(String key, String labelsItem) { if (this.labels == null) { - this.labels = new HashMap(); + this.labels = new HashMap<>(); } this.labels.put(key, labelsItem); return this; @@ -397,7 +397,7 @@ public V1ObjectMeta managedFields(List managedFields) { public V1ObjectMeta addManagedFieldsItem(V1ManagedFieldsEntry managedFieldsItem) { if (this.managedFields == null) { - this.managedFields = new ArrayList(); + this.managedFields = new ArrayList<>(); } this.managedFields.add(managedFieldsItem); return this; @@ -485,7 +485,7 @@ public V1ObjectMeta ownerReferences(List ownerReferences) { public V1ObjectMeta addOwnerReferencesItem(V1OwnerReference ownerReferencesItem) { if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); + this.ownerReferences = new ArrayList<>(); } this.ownerReferences.add(ownerReferencesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java index 14ce9903e1..105bdcfc5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "ObjectReference contains enough information to let you inspect or modify the referred object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java index 73156e9021..c8ef14936a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java index 5cf86a994d..6fbb4d136d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java index 77d9293d0b..fec810e78b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java index 2ee8cbae30..4191c85d86 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,24 +15,24 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** PersistentVolumeClaimCondition contails details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contails details about state of pvc") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) - private DateTime lastProbeTime; + private OffsetDateTime lastProbeTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -54,7 +54,7 @@ public class V1PersistentVolumeClaimCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1PersistentVolumeClaimCondition lastProbeTime(DateTime lastProbeTime) { + public V1PersistentVolumeClaimCondition lastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return this; @@ -67,15 +67,15 @@ public V1PersistentVolumeClaimCondition lastProbeTime(DateTime lastProbeTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time we probed the condition.") - public DateTime getLastProbeTime() { + public OffsetDateTime getLastProbeTime() { return lastProbeTime; } - public void setLastProbeTime(DateTime lastProbeTime) { + public void setLastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } - public V1PersistentVolumeClaimCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1PersistentVolumeClaimCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -88,11 +88,11 @@ public V1PersistentVolumeClaimCondition lastTransitionTime(DateTime lastTransiti */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java index 1825d7a3e6..2b3ca99628 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1PersistentVolumeClaimList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java index 1f417f5c1c..3cf2cc55e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @@ -73,7 +73,7 @@ public V1PersistentVolumeClaimSpec accessModes(List accessModes) { public V1PersistentVolumeClaimSpec addAccessModesItem(String accessModesItem) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.add(accessModesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java index 2e5f897281..8ceccefdcc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @@ -57,7 +57,7 @@ public V1PersistentVolumeClaimStatus accessModes(List accessModes) { public V1PersistentVolumeClaimStatus addAccessModesItem(String accessModesItem) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.add(accessModesItem); return this; @@ -89,7 +89,7 @@ public V1PersistentVolumeClaimStatus capacity(Map capacity) { public V1PersistentVolumeClaimStatus putCapacityItem(String key, Quantity capacityItem) { if (this.capacity == null) { - this.capacity = new HashMap(); + this.capacity = new HashMap<>(); } this.capacity.put(key, capacityItem); return this; @@ -120,7 +120,7 @@ public V1PersistentVolumeClaimStatus conditions( public V1PersistentVolumeClaimStatus addConditionsItem( V1PersistentVolumeClaimCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java index 37962b9519..57cc3ffdf1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java index 01facfef94..eb13140930 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java index 9574db0050..425a2c38fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1PersistentVolumeList implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java index 19e7b6e63a..772f8d5bad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @@ -187,7 +187,7 @@ public V1PersistentVolumeSpec accessModes(List accessModes) { public V1PersistentVolumeSpec addAccessModesItem(String accessModesItem) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList<>(); } this.accessModes.add(accessModesItem); return this; @@ -283,7 +283,7 @@ public V1PersistentVolumeSpec capacity(Map capacity) { public V1PersistentVolumeSpec putCapacityItem(String key, Quantity capacityItem) { if (this.capacity == null) { - this.capacity = new HashMap(); + this.capacity = new HashMap<>(); } this.capacity.put(key, capacityItem); return this; @@ -568,7 +568,7 @@ public V1PersistentVolumeSpec mountOptions(List mountOptions) { public V1PersistentVolumeSpec addMountOptionsItem(String mountOptionsItem) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } this.mountOptions.add(mountOptionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java index 895d775f02..623360effc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java index 2510cbd2f0..39610474dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java index 3f328064f1..5a7b62f893 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java index 2d56f9fd17..af54d20e2a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @@ -48,8 +48,7 @@ public V1PodAffinity preferredDuringSchedulingIgnoredDuringExecution( public V1PodAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( V1WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecutionItem) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } this.preferredDuringSchedulingIgnoredDuringExecution.add( preferredDuringSchedulingIgnoredDuringExecutionItem); @@ -92,7 +91,7 @@ public V1PodAffinity requiredDuringSchedulingIgnoredDuringExecution( public V1PodAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem( V1PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecutionItem) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } this.requiredDuringSchedulingIgnoredDuringExecution.add( requiredDuringSchedulingIgnoredDuringExecutionItem); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java index 497910c13a..2e02a83c70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @@ -76,7 +76,7 @@ public V1PodAffinityTerm namespaces(List namespaces) { public V1PodAffinityTerm addNamespacesItem(String namespacesItem) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.add(namespacesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java index 5034cbf062..2499a6e22d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @@ -48,8 +48,7 @@ public V1PodAntiAffinity preferredDuringSchedulingIgnoredDuringExecution( public V1PodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( V1WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecutionItem) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = - new ArrayList(); + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } this.preferredDuringSchedulingIgnoredDuringExecution.add( preferredDuringSchedulingIgnoredDuringExecutionItem); @@ -92,7 +91,7 @@ public V1PodAntiAffinity requiredDuringSchedulingIgnoredDuringExecution( public V1PodAntiAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem( V1PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecutionItem) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); } this.requiredDuringSchedulingIgnoredDuringExecution.add( requiredDuringSchedulingIgnoredDuringExecutionItem); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java index 2d03ced1c5..ad071b2ef7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,24 +15,24 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** PodCondition contains details for the current condition of this pod. */ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) - private DateTime lastProbeTime; + private OffsetDateTime lastProbeTime; public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -54,7 +54,7 @@ public class V1PodCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1PodCondition lastProbeTime(DateTime lastProbeTime) { + public V1PodCondition lastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return this; @@ -67,15 +67,15 @@ public V1PodCondition lastProbeTime(DateTime lastProbeTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time we probed the condition.") - public DateTime getLastProbeTime() { + public OffsetDateTime getLastProbeTime() { return lastProbeTime; } - public void setLastProbeTime(DateTime lastProbeTime) { + public void setLastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } - public V1PodCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1PodCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -88,11 +88,11 @@ public V1PodCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java index a8a11ece31..c3e93b67b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @@ -52,7 +52,7 @@ public V1PodDNSConfig nameservers(List nameservers) { public V1PodDNSConfig addNameserversItem(String nameserversItem) { if (this.nameservers == null) { - this.nameservers = new ArrayList(); + this.nameservers = new ArrayList<>(); } this.nameservers.add(nameserversItem); return this; @@ -84,7 +84,7 @@ public V1PodDNSConfig options(List options) { public V1PodDNSConfig addOptionsItem(V1PodDNSConfigOption optionsItem) { if (this.options == null) { - this.options = new ArrayList(); + this.options = new ArrayList<>(); } this.options.add(optionsItem); return this; @@ -117,7 +117,7 @@ public V1PodDNSConfig searches(List searches) { public V1PodDNSConfig addSearchesItem(String searchesItem) { if (this.searches == null) { - this.searches = new ArrayList(); + this.searches = new ArrayList<>(); } this.searches.add(searchesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java index a95076fe46..87cc12b0db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java index df9f4bdb67..1c5145c61e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java index b20bdff13c..9fc37ac473 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodList is a list of Pods.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1PodList implements io.kubernetes.client.common.KubernetesListObje public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java index dafc1363c9..9b1f908128 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java index 5080610eae..a165f406a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; @@ -262,7 +262,7 @@ public V1PodSecurityContext supplementalGroups(List supplementalGroups) { public V1PodSecurityContext addSupplementalGroupsItem(Long supplementalGroupsItem) { if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + this.supplementalGroups = new ArrayList<>(); } this.supplementalGroups.add(supplementalGroupsItem); return this; @@ -294,7 +294,7 @@ public V1PodSecurityContext sysctls(List sysctls) { public V1PodSecurityContext addSysctlsItem(V1Sysctl sysctlsItem) { if (this.sysctls == null) { - this.sysctls = new ArrayList(); + this.sysctls = new ArrayList<>(); } this.sysctls.add(sysctlsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java index c5a872c452..9e890969ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ @ApiModel(description = "PodSpec is a description of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @@ -47,7 +47,7 @@ public class V1PodSpec { public static final String SERIALIZED_NAME_CONTAINERS = "containers"; @SerializedName(SERIALIZED_NAME_CONTAINERS) - private List containers = new ArrayList(); + private List containers = new ArrayList<>(); public static final String SERIALIZED_NAME_DNS_CONFIG = "dnsConfig"; @@ -386,7 +386,7 @@ public V1PodSpec ephemeralContainers(List ephemeralContain public V1PodSpec addEphemeralContainersItem(V1EphemeralContainer ephemeralContainersItem) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); + this.ephemeralContainers = new ArrayList<>(); } this.ephemeralContainers.add(ephemeralContainersItem); return this; @@ -422,7 +422,7 @@ public V1PodSpec hostAliases(List hostAliases) { public V1PodSpec addHostAliasesItem(V1HostAlias hostAliasesItem) { if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + this.hostAliases = new ArrayList<>(); } this.hostAliases.add(hostAliasesItem); return this; @@ -544,7 +544,7 @@ public V1PodSpec imagePullSecrets(List imagePullSecrets) public V1PodSpec addImagePullSecretsItem(V1LocalObjectReference imagePullSecretsItem) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } this.imagePullSecrets.add(imagePullSecretsItem); return this; @@ -579,7 +579,7 @@ public V1PodSpec initContainers(List initContainers) { public V1PodSpec addInitContainersItem(V1Container initContainersItem) { if (this.initContainers == null) { - this.initContainers = new ArrayList(); + this.initContainers = new ArrayList<>(); } this.initContainers.add(initContainersItem); return this; @@ -644,7 +644,7 @@ public V1PodSpec nodeSelector(Map nodeSelector) { public V1PodSpec putNodeSelectorItem(String key, String nodeSelectorItem) { if (this.nodeSelector == null) { - this.nodeSelector = new HashMap(); + this.nodeSelector = new HashMap<>(); } this.nodeSelector.put(key, nodeSelectorItem); return this; @@ -677,7 +677,7 @@ public V1PodSpec overhead(Map overhead) { public V1PodSpec putOverheadItem(String key, Quantity overheadItem) { if (this.overhead == null) { - this.overhead = new HashMap(); + this.overhead = new HashMap<>(); } this.overhead.put(key, overheadItem); return this; @@ -795,7 +795,7 @@ public V1PodSpec readinessGates(List readinessGates) { public V1PodSpec addReadinessGatesItem(V1PodReadinessGate readinessGatesItem) { if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); + this.readinessGates = new ArrayList<>(); } this.readinessGates.add(readinessGatesItem); return this; @@ -1082,7 +1082,7 @@ public V1PodSpec tolerations(List tolerations) { public V1PodSpec addTolerationsItem(V1Toleration tolerationsItem) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } this.tolerations.add(tolerationsItem); return this; @@ -1113,7 +1113,7 @@ public V1PodSpec topologySpreadConstraints( public V1PodSpec addTopologySpreadConstraintsItem( V1TopologySpreadConstraint topologySpreadConstraintsItem) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + this.topologySpreadConstraints = new ArrayList<>(); } this.topologySpreadConstraints.add(topologySpreadConstraintsItem); return this; @@ -1147,7 +1147,7 @@ public V1PodSpec volumes(List volumes) { public V1PodSpec addVolumesItem(V1Volume volumesItem) { if (this.volumes == null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); } this.volumes.add(volumesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java index 9d6211b813..0fee84d408 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,10 +15,10 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** * PodStatus represents information about the status of a pod. Status may trail the actual state of @@ -29,7 +29,7 @@ "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -95,7 +95,7 @@ public class V1PodStatus { public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) - private DateTime startTime; + private OffsetDateTime startTime; public V1PodStatus conditions(List conditions) { @@ -105,7 +105,7 @@ public V1PodStatus conditions(List conditions) { public V1PodStatus addConditionsItem(V1PodCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; @@ -137,7 +137,7 @@ public V1PodStatus containerStatuses(List containerStatuses) public V1PodStatus addContainerStatusesItem(V1ContainerStatus containerStatusesItem) { if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); + this.containerStatuses = new ArrayList<>(); } this.containerStatuses.add(containerStatusesItem); return this; @@ -172,7 +172,7 @@ public V1PodStatus ephemeralContainerStatuses( public V1PodStatus addEphemeralContainerStatusesItem( V1ContainerStatus ephemeralContainerStatusesItem) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); + this.ephemeralContainerStatuses = new ArrayList<>(); } this.ephemeralContainerStatuses.add(ephemeralContainerStatusesItem); return this; @@ -226,7 +226,7 @@ public V1PodStatus initContainerStatuses(List initContainerSt public V1PodStatus addInitContainerStatusesItem(V1ContainerStatus initContainerStatusesItem) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + this.initContainerStatuses = new ArrayList<>(); } this.initContainerStatuses.add(initContainerStatusesItem); return this; @@ -369,7 +369,7 @@ public V1PodStatus podIPs(List podIPs) { public V1PodStatus addPodIPsItem(V1PodIP podIPsItem) { if (this.podIPs == null) { - this.podIPs = new ArrayList(); + this.podIPs = new ArrayList<>(); } this.podIPs.add(podIPsItem); return this; @@ -443,7 +443,7 @@ public void setReason(String reason) { this.reason = reason; } - public V1PodStatus startTime(DateTime startTime) { + public V1PodStatus startTime(OffsetDateTime startTime) { this.startTime = startTime; return this; @@ -459,11 +459,11 @@ public V1PodStatus startTime(DateTime startTime) { @ApiModelProperty( value = "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.") - public DateTime getStartTime() { + public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(DateTime startTime) { + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java index fccd005c13..6bd14f92ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java index 5f6ec6bcd1..784dd9077d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1PodTemplateList implements io.kubernetes.client.common.Kubernetes public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java index 16922e3b6c..d7f557ffe5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "PodTemplateSpec describes the data a pod should have when created from a template") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java index ea6ebd21b6..3a434e819e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -53,7 +53,7 @@ public class V1PolicyRule { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1PolicyRule apiGroups(List apiGroups) { @@ -63,7 +63,7 @@ public V1PolicyRule apiGroups(List apiGroups) { public V1PolicyRule addApiGroupsItem(String apiGroupsItem) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(apiGroupsItem); return this; @@ -96,7 +96,7 @@ public V1PolicyRule nonResourceURLs(List nonResourceURLs) { public V1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(nonResourceURLsItem); return this; @@ -131,7 +131,7 @@ public V1PolicyRule resourceNames(List resourceNames) { public V1PolicyRule addResourceNamesItem(String resourceNamesItem) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(resourceNamesItem); return this; @@ -163,7 +163,7 @@ public V1PolicyRule resources(List resources) { public V1PolicyRule addResourcesItem(String resourcesItem) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(resourcesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java index 8acc5db8eb..1ce6e11d95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java index 8cec264e2a..dca7e07cc0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java index 2f801e45af..c0b97e66e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java index 4b2756e938..f5b39de160 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java index 7c018eae23..6d605a02f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PriorityClassList is a collection of priority classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1PriorityClassList implements io.kubernetes.client.common.Kubernet public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java index 86e02c25ae..bdd54bdf95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java index 3e0ad4d0a3..6a5bacba22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Represents a projected volume source") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @@ -33,7 +33,7 @@ public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_SOURCES = "sources"; @SerializedName(SERIALIZED_NAME_SOURCES) - private List sources = new ArrayList(); + private List sources = new ArrayList<>(); public V1ProjectedVolumeSource defaultMode(Integer defaultMode) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java index ce4168455f..a2e69448a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java index 3b65add225..60aff866ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @@ -48,7 +48,7 @@ public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) - private List monitors = new ArrayList(); + private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_POOL = "pool"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java index 5b60b9f16b..8e37902609 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @@ -48,7 +48,7 @@ public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) - private List monitors = new ArrayList(); + private List monitors = new ArrayList<>(); public static final String SERIALIZED_NAME_POOL = "pool"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java index 47cd9625b0..c3491ef2d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java index d755f26275..665e28f95b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,20 +15,20 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel( description = "ReplicaSetCondition describes the state of a replica set at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -50,7 +50,7 @@ public class V1ReplicaSetCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1ReplicaSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -63,11 +63,11 @@ public V1ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java index 89eeaac878..26661739da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesL public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java index ba53a44fc9..7dbd57628c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java index 88ddff4f8d..7e643d249b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @@ -86,7 +86,7 @@ public V1ReplicaSetStatus conditions(List conditions) { public V1ReplicaSetStatus addConditionsItem(V1ReplicaSetCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java index c530bbb71d..52c683572b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "ReplicationController represents the configuration of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java index 94246fb1a1..882b1b1dbd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * ReplicationControllerCondition describes the state of a replication controller at a certain @@ -27,12 +27,12 @@ "ReplicationControllerCondition describes the state of a replication controller at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -54,7 +54,7 @@ public class V1ReplicationControllerCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1ReplicationControllerCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1ReplicationControllerCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -67,11 +67,11 @@ public V1ReplicationControllerCondition lastTransitionTime(DateTime lastTransiti */ @javax.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java index 74c6390c67..a260be1f20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1ReplicationControllerList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java index ebd5523c8f..5afeecdff5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "ReplicationControllerSpec is the specification of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @@ -104,7 +104,7 @@ public V1ReplicationControllerSpec selector(Map selector) { public V1ReplicationControllerSpec putSelectorItem(String key, String selectorItem) { if (this.selector == null) { - this.selector = new HashMap(); + this.selector = new HashMap<>(); } this.selector.put(key, selectorItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java index d982e4ec47..0cd08beb0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "ReplicationControllerStatus represents the current status of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @@ -91,7 +91,7 @@ public V1ReplicationControllerStatus conditions( public V1ReplicationControllerStatus addConditionsItem( V1ReplicationControllerCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java index e15bddaf5a..a872839aec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java index c78c938cf7..6ec72e8791 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ "ResourceFieldSelector represents container resources (cpu, memory) and their output format") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java index 58602cb419..df5ef95804 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java index 3835033936..fe04deb449 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1ResourceQuotaList implements io.kubernetes.client.common.Kubernet public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java index 7ed0591fe1..a104544f90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @@ -51,7 +51,7 @@ public V1ResourceQuotaSpec hard(Map hard) { public V1ResourceQuotaSpec putHardItem(String key, Quantity hardItem) { if (this.hard == null) { - this.hard = new HashMap(); + this.hard = new HashMap<>(); } this.hard.put(key, hardItem); return this; @@ -104,7 +104,7 @@ public V1ResourceQuotaSpec scopes(List scopes) { public V1ResourceQuotaSpec addScopesItem(String scopesItem) { if (this.scopes == null) { - this.scopes = new ArrayList(); + this.scopes = new ArrayList<>(); } this.scopes.add(scopesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java index d8330821de..0856afafd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @@ -44,7 +44,7 @@ public V1ResourceQuotaStatus hard(Map hard) { public V1ResourceQuotaStatus putHardItem(String key, Quantity hardItem) { if (this.hard == null) { - this.hard = new HashMap(); + this.hard = new HashMap<>(); } this.hard.put(key, hardItem); return this; @@ -76,7 +76,7 @@ public V1ResourceQuotaStatus used(Map used) { public V1ResourceQuotaStatus putUsedItem(String key, Quantity usedItem) { if (this.used == null) { - this.used = new HashMap(); + this.used = new HashMap<>(); } this.used.put(key, usedItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java index 78ed0025e5..79a946b4f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; @@ -44,7 +44,7 @@ public V1ResourceRequirements limits(Map limits) { public V1ResourceRequirements putLimitsItem(String key, Quantity limitsItem) { if (this.limits == null) { - this.limits = new HashMap(); + this.limits = new HashMap<>(); } this.limits.put(key, limitsItem); return this; @@ -76,7 +76,7 @@ public V1ResourceRequirements requests(Map requests) { public V1ResourceRequirements putRequestsItem(String key, Quantity requestsItem) { if (this.requests == null) { - this.requests = new HashMap(); + this.requests = new HashMap<>(); } this.requests.put(key, requestsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java index d75aab4bf5..ac9f50e2de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -48,7 +48,7 @@ public class V1ResourceRule { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1ResourceRule apiGroups(List apiGroups) { @@ -58,7 +58,7 @@ public V1ResourceRule apiGroups(List apiGroups) { public V1ResourceRule addApiGroupsItem(String apiGroupsItem) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(apiGroupsItem); return this; @@ -91,7 +91,7 @@ public V1ResourceRule resourceNames(List resourceNames) { public V1ResourceRule addResourceNamesItem(String resourceNamesItem) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(resourceNamesItem); return this; @@ -123,7 +123,7 @@ public V1ResourceRule resources(List resources) { public V1ResourceRule addResourcesItem(String resourcesItem) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(resourcesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java index 9d19af5270..6ddc9ff5b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -131,7 +131,7 @@ public V1Role rules(List rules) { public V1Role addRulesItem(V1PolicyRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java index 0d4567ca1e..6dd2f970a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -158,7 +158,7 @@ public V1RoleBinding subjects(List subjects) { public V1RoleBinding addSubjectsItem(V1Subject subjectsItem) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } this.subjects.add(subjectsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java index b30c1f566b..ae841812b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1RoleBindingList implements io.kubernetes.client.common.Kubernetes public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java index b526aef62d..251d6f9e05 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "RoleList is a collection of Roles") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1RoleList implements io.kubernetes.client.common.KubernetesListObj public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java index a43911203d..e3eed007d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "RoleRef contains information that points to the role being used") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java index f890af36a7..a34ae8815f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java index f82efce2fa..6a0122bf7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "Spec to control the desired behavior of rolling update.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java index a691e75679..04caafbd3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_PARTITION = "partition"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java index cd74553a32..63708c3dd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -63,7 +63,7 @@ public V1RuleWithOperations apiGroups(List apiGroups) { public V1RuleWithOperations addApiGroupsItem(String apiGroupsItem) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(apiGroupsItem); return this; @@ -95,7 +95,7 @@ public V1RuleWithOperations apiVersions(List apiVersions) { public V1RuleWithOperations addApiVersionsItem(String apiVersionsItem) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.add(apiVersionsItem); return this; @@ -127,7 +127,7 @@ public V1RuleWithOperations operations(List operations) { public V1RuleWithOperations addOperationsItem(String operationsItem) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.add(operationsItem); return this; @@ -160,7 +160,7 @@ public V1RuleWithOperations resources(List resources) { public V1RuleWithOperations addResourcesItem(String resourcesItem) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(resourcesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java index 71cacacdef..615c6c2140 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java index 57db494a68..78ef61e3df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Scale represents a scaling request for a resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java index eaad4a7263..98f0179a51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java index d74845f290..3272a627a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java index 3b98248b09..faf446d698 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java index 77aea7d435..a03c297406 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java index 3a6f4b1855..7b56efc830 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @@ -45,7 +45,7 @@ public V1ScopeSelector matchExpressions( public V1ScopeSelector addMatchExpressionsItem( V1ScopedResourceSelectorRequirement matchExpressionsItem) { if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + this.matchExpressions = new ArrayList<>(); } this.matchExpressions.add(matchExpressionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java index 633a34f6fa..16479251cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @@ -97,7 +97,7 @@ public V1ScopedResourceSelectorRequirement values(List values) { public V1ScopedResourceSelectorRequirement addValuesItem(String valuesItem) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList<>(); } this.values.add(valuesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java index a4143bd114..76e5ab0cd0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java index 05ca79e8c4..a4768287cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -99,7 +99,7 @@ public V1Secret data(Map data) { public V1Secret putDataItem(String key, byte[] dataItem) { if (this.data == null) { - this.data = new HashMap(); + this.data = new HashMap<>(); } this.data.put(key, dataItem); return this; @@ -205,7 +205,7 @@ public V1Secret stringData(Map stringData) { public V1Secret putStringDataItem(String key, String stringDataItem) { if (this.stringData == null) { - this.stringData = new HashMap(); + this.stringData = new HashMap<>(); } this.stringData.put(key, stringDataItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java index b66a04a2fb..31120cddff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java index 6863330a07..0a543da334 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java index 81e8091a22..54bd68de13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "SecretList is a list of Secret.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1SecretList implements io.kubernetes.client.common.KubernetesListO public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java index 242546059e..0b7698891b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -54,7 +54,7 @@ public V1SecretProjection items(List items) { public V1SecretProjection addItemsItem(V1KeyToPath itemsItem) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } this.items.add(itemsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java index b9b4f19d47..159898acba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java index d1e9626204..cca6eb25c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @@ -86,7 +86,7 @@ public V1SecretVolumeSource items(List items) { public V1SecretVolumeSource addItemsItem(V1KeyToPath itemsItem) { if (this.items == null) { - this.items = new ArrayList(); + this.items = new ArrayList<>(); } this.items.add(itemsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java index fd05400b95..9169aa7366 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java index 7d1a7b0c36..8016c2e325 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java index 7689eab76e..b5b47ee54d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java index ea7ce0c75e..fd325a7adc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java index 0c77592589..d4fc1fd1ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -19,7 +19,7 @@ /** V1SelfSubjectRulesReviewSpec */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java index 9164ff4ad5..58756f9f1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java index 6716fed355..da42fdbf98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java index 935bc66d31..71dd044143 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -119,7 +119,7 @@ public V1ServiceAccount imagePullSecrets(List imagePullS public V1ServiceAccount addImagePullSecretsItem(V1LocalObjectReference imagePullSecretsItem) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + this.imagePullSecrets = new ArrayList<>(); } this.imagePullSecrets.add(imagePullSecretsItem); return this; @@ -201,7 +201,7 @@ public V1ServiceAccount secrets(List secrets) { public V1ServiceAccount addSecretsItem(V1ObjectReference secretsItem) { if (this.secrets == null) { - this.secrets = new ArrayList(); + this.secrets = new ArrayList<>(); } this.secrets.add(secretsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java index 6a1782f1c7..a0f1213a13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1ServiceAccountList implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java index 922b15e23c..f23e9cd858 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java index ddb401c752..3da8c54045 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java index f7c51dab6d..798538c8ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceList holds a list of services.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1ServiceList implements io.kubernetes.client.common.KubernetesList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java index 7de8d34eae..b56a45c2d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "ServicePort contains information on service's port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java index d40ad98c69..63d950a4a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServiceSpec { public static final String SERIALIZED_NAME_CLUSTER_I_P = "clusterIP"; @@ -142,7 +142,7 @@ public V1ServiceSpec externalIPs(List externalIPs) { public V1ServiceSpec addExternalIPsItem(String externalIPsItem) { if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); + this.externalIPs = new ArrayList<>(); } this.externalIPs.add(externalIPsItem); return this; @@ -316,7 +316,7 @@ public V1ServiceSpec loadBalancerSourceRanges(List loadBalancerSourceRan public V1ServiceSpec addLoadBalancerSourceRangesItem(String loadBalancerSourceRangesItem) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); + this.loadBalancerSourceRanges = new ArrayList<>(); } this.loadBalancerSourceRanges.add(loadBalancerSourceRangesItem); return this; @@ -350,7 +350,7 @@ public V1ServiceSpec ports(List ports) { public V1ServiceSpec addPortsItem(V1ServicePort portsItem) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } this.ports.add(portsItem); return this; @@ -412,7 +412,7 @@ public V1ServiceSpec selector(Map selector) { public V1ServiceSpec putSelectorItem(String key, String selectorItem) { if (this.selector == null) { - this.selector = new HashMap(); + this.selector = new HashMap<>(); } this.selector.put(key, selectorItem); return this; @@ -493,7 +493,7 @@ public V1ServiceSpec topologyKeys(List topologyKeys) { public V1ServiceSpec addTopologyKeysItem(String topologyKeysItem) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); } this.topologyKeys.add(topologyKeysItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java index eb85fbf6a5..2f7c88db08 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceStatus represents the current status of a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ServiceStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java index 82f58e1386..1305f2cded 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java index 25014e9c8a..37e3e91f63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java index b4d0c0549d..bb94eb6e6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,20 +15,20 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel( description = "StatefulSetCondition describes the state of a statefulset at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -50,7 +50,7 @@ public class V1StatefulSetCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1StatefulSetCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1StatefulSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -63,11 +63,11 @@ public V1StatefulSetCondition lastTransitionTime(DateTime lastTransitionTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java index 5a28885097..32f96ad9b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1StatefulSetList implements io.kubernetes.client.common.Kubernetes public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java index 48881e8307..65470f5ae6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_POD_MANAGEMENT_POLICY = "podManagementPolicy"; @@ -241,7 +241,7 @@ public V1StatefulSetSpec volumeClaimTemplates( public V1StatefulSetSpec addVolumeClaimTemplatesItem( V1PersistentVolumeClaim volumeClaimTemplatesItem) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); + this.volumeClaimTemplates = new ArrayList<>(); } this.volumeClaimTemplates.add(volumeClaimTemplatesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java index 7186c5d94f..0c87e47033 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @@ -103,7 +103,7 @@ public V1StatefulSetStatus conditions(List conditions) { public V1StatefulSetStatus addConditionsItem(V1StatefulSetCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java index 6f8fae9e66..0732e84de0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java index 414e0c09fe..a5fd19bf7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Status is a return value for calls that don't return other objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java index bd7a536e1a..7593182093 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java index 0ad64d3089..2aa1205fa9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @@ -70,7 +70,7 @@ public V1StatusDetails causes(List causes) { public V1StatusDetails addCausesItem(V1StatusCause causesItem) { if (this.causes == null) { - this.causes = new ArrayList(); + this.causes = new ArrayList<>(); } this.causes.add(causesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java index 803415f6a5..d62b2ed2d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; @@ -113,7 +113,7 @@ public V1StorageClass allowedTopologies(List allowedTopo public V1StorageClass addAllowedTopologiesItem(V1TopologySelectorTerm allowedTopologiesItem) { if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); + this.allowedTopologies = new ArrayList<>(); } this.allowedTopologies.add(allowedTopologiesItem); return this; @@ -220,7 +220,7 @@ public V1StorageClass mountOptions(List mountOptions) { public V1StorageClass addMountOptionsItem(String mountOptionsItem) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } this.mountOptions.add(mountOptionsItem); return this; @@ -253,7 +253,7 @@ public V1StorageClass parameters(Map parameters) { public V1StorageClass putParametersItem(String key, String parametersItem) { if (this.parameters == null) { - this.parameters = new HashMap(); + this.parameters = new HashMap<>(); } this.parameters.put(key, parametersItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java index 9fa9afa086..4d04dc19c8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "StorageClassList is a collection of storage classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1StorageClassList implements io.kubernetes.client.common.Kubernete public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java index 06a0d18dc3..7b135d5134 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a StorageOS persistent volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java index d510a1a252..690eb7923e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a StorageOS persistent volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java index f68a6c1ee9..5331032f3a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java index 26889fc7b2..389e1f731f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "SubjectAccessReview checks whether or not a user or group can perform an action.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java index 629e087960..7d9ad46096 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @@ -70,7 +70,7 @@ public V1SubjectAccessReviewSpec extra(Map> extra) { public V1SubjectAccessReviewSpec putExtraItem(String key, List extraItem) { if (this.extra == null) { - this.extra = new HashMap>(); + this.extra = new HashMap<>(); } this.extra.put(key, extraItem); return this; @@ -102,7 +102,7 @@ public V1SubjectAccessReviewSpec groups(List groups) { public V1SubjectAccessReviewSpec addGroupsItem(String groupsItem) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(groupsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java index 9f4332ca74..204cff8b7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SubjectAccessReviewStatus") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java index 0d1501f111..21ca3a6e6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @@ -45,12 +45,12 @@ public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) - private List nonResourceRules = new ArrayList(); + private List nonResourceRules = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) - private List resourceRules = new ArrayList(); + private List resourceRules = new ArrayList<>(); public V1SubjectRulesReviewStatus evaluationError(String evaluationError) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java index 20e2d9c1da..f20fedbe75 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Sysctl defines a kernel parameter to be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java index 06d04e0f1e..859da0d400 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java index 70b19f5046..88e13b7f38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate @@ -27,7 +27,7 @@ "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @@ -42,7 +42,7 @@ public class V1Taint { public static final String SERIALIZED_NAME_TIME_ADDED = "timeAdded"; @SerializedName(SERIALIZED_NAME_TIME_ADDED) - private DateTime timeAdded; + private OffsetDateTime timeAdded; public static final String SERIALIZED_NAME_VALUE = "value"; @@ -93,7 +93,7 @@ public void setKey(String key) { this.key = key; } - public V1Taint timeAdded(DateTime timeAdded) { + public V1Taint timeAdded(OffsetDateTime timeAdded) { this.timeAdded = timeAdded; return this; @@ -109,11 +109,11 @@ public V1Taint timeAdded(DateTime timeAdded) { @ApiModelProperty( value = "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.") - public DateTime getTimeAdded() { + public OffsetDateTime getTimeAdded() { return timeAdded; } - public void setTimeAdded(DateTime timeAdded) { + public void setTimeAdded(OffsetDateTime timeAdded) { this.timeAdded = timeAdded; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequest.java index a08b5a09f1..186f435921 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequest.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "TokenRequest requests a token for a given service account.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java index 5db9293f93..01b446b249 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,12 +23,12 @@ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) - private List audiences = new ArrayList(); + private List audiences = new ArrayList<>(); public static final String SERIALIZED_NAME_BOUND_OBJECT_REF = "boundObjectRef"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java index f2cf457793..441541306f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,26 +15,26 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** TokenRequestStatus is the result of a token request. */ @ApiModel(description = "TokenRequestStatus is the result of a token request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) - private DateTime expirationTimestamp; + private OffsetDateTime expirationTimestamp; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) private String token; - public V1TokenRequestStatus expirationTimestamp(DateTime expirationTimestamp) { + public V1TokenRequestStatus expirationTimestamp(OffsetDateTime expirationTimestamp) { this.expirationTimestamp = expirationTimestamp; return this; @@ -48,11 +48,11 @@ public V1TokenRequestStatus expirationTimestamp(DateTime expirationTimestamp) { @ApiModelProperty( required = true, value = "ExpirationTimestamp is the time of expiration of the returned token.") - public DateTime getExpirationTimestamp() { + public OffsetDateTime getExpirationTimestamp() { return expirationTimestamp; } - public void setExpirationTimestamp(DateTime expirationTimestamp) { + public void setExpirationTimestamp(OffsetDateTime expirationTimestamp) { this.expirationTimestamp = expirationTimestamp; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java index 8f361a7428..e9c52669f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java index e179244665..b5cf49a665 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @@ -43,7 +43,7 @@ public V1TokenReviewSpec audiences(List audiences) { public V1TokenReviewSpec addAudiencesItem(String audiencesItem) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.add(audiencesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java index dab6b3eff8..90af3bf4b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @@ -53,7 +53,7 @@ public V1TokenReviewStatus audiences(List audiences) { public V1TokenReviewStatus addAudiencesItem(String audiencesItem) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.add(audiencesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java index fde1c0453a..1574064e5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java index d917ba7d92..839bfbb3d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @@ -38,7 +38,7 @@ public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) - private List values = new ArrayList(); + private List values = new ArrayList<>(); public V1TopologySelectorLabelRequirement key(String key) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java index eca39023fc..36d1216623 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @@ -46,7 +46,7 @@ public V1TopologySelectorTerm matchLabelExpressions( public V1TopologySelectorTerm addMatchLabelExpressionsItem( V1TopologySelectorLabelRequirement matchLabelExpressionsItem) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); + this.matchLabelExpressions = new ArrayList<>(); } this.matchLabelExpressions.add(matchLabelExpressionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java index 5cd43284cf..daf88dcd09 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java index 494a6ac37e..849ded4037 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java index 5d7b92648a..b3ad8686ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "UserInfo holds the information about the user needed to implement the user.Info interface.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @@ -57,7 +57,7 @@ public V1UserInfo extra(Map> extra) { public V1UserInfo putExtraItem(String key, List extraItem) { if (this.extra == null) { - this.extra = new HashMap>(); + this.extra = new HashMap<>(); } this.extra.put(key, extraItem); return this; @@ -86,7 +86,7 @@ public V1UserInfo groups(List groups) { public V1UserInfo addGroupsItem(String groupsItem) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(groupsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java index d5d249d793..8eeda9890f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,12 +27,12 @@ "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) - private List admissionReviewVersions = new ArrayList(); + private List admissionReviewVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @@ -265,7 +265,7 @@ public V1ValidatingWebhook rules(List rules) { public V1ValidatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java index 5fe2338d0b..c0f275c32e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -132,7 +132,7 @@ public V1ValidatingWebhookConfiguration webhooks(List webho public V1ValidatingWebhookConfiguration addWebhooksItem(V1ValidatingWebhook webhooksItem) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } this.webhooks.add(webhooksItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java index 679197c008..a9d8b67f89 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,8 +35,7 @@ public class V1ValidatingWebhookConfigurationList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java index edfe78fd00..2de28e11b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "Volume represents a named volume in a pod that may be accessed by any container in the pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java index bf4abfbd78..2a86469d7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java index 6b82ef8b53..9f9e546805 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1VolumeAttachmentList implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java index 662f900e28..1f22056379 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java index 850440c13e..e52685d364 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java index 2807b14893..692d521d1c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @@ -99,7 +99,7 @@ public V1VolumeAttachmentStatus attachmentMetadata(Map attachmen public V1VolumeAttachmentStatus putAttachmentMetadataItem( String key, String attachmentMetadataItem) { if (this.attachmentMetadata == null) { - this.attachmentMetadata = new HashMap(); + this.attachmentMetadata = new HashMap<>(); } this.attachmentMetadata.put(key, attachmentMetadataItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java index de4d1623ed..f7ab1e2cc0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "volumeDevice describes a mapping of a raw block device within a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java index 2a8fe95cc0..25c5e4bd5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,14 +15,14 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -32,7 +32,7 @@ public class V1VolumeError { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) - private DateTime time; + private OffsetDateTime time; public V1VolumeError message(String message) { @@ -58,7 +58,7 @@ public void setMessage(String message) { this.message = message; } - public V1VolumeError time(DateTime time) { + public V1VolumeError time(OffsetDateTime time) { this.time = time; return this; @@ -71,11 +71,11 @@ public V1VolumeError time(DateTime time) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time the error was encountered.") - public DateTime getTime() { + public OffsetDateTime getTime() { return time; } - public void setTime(DateTime time) { + public void setTime(OffsetDateTime time) { this.time = time; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java index 0680aa656c..1de8d80057 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java index 6cafd439ea..8794686fb1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java index 3afa15d124..eea397072c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java index 95d1ca8ee4..1a2dd73600 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Projection that may be projected along with other supported volume types") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java index 91737f66f7..ff0c45c7df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a vSphere volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java index 43e0d6c910..79ce927add 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Event represents a single event to a watched resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java index 643a1201f6..52fd2c4b0f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @@ -34,7 +34,7 @@ public class V1WebhookConversion { "conversionReviewVersions"; @SerializedName(SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS) - private List conversionReviewVersions = new ArrayList(); + private List conversionReviewVersions = new ArrayList<>(); public V1WebhookConversion clientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java index c3bed0af7e..219ade5e6b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java index 3661a27090..6de305036d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AggregationRule.java index 42b3f662f2..17c909e2c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AggregationRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @@ -41,7 +41,7 @@ public V1alpha1AggregationRule clusterRoleSelectors(List cluste public V1alpha1AggregationRule addClusterRoleSelectorsItem( V1LabelSelector clusterRoleSelectorsItem) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); } this.clusterRoleSelectors.add(clusterRoleSelectorsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRole.java index 4e13c5f48a..1aadf4c35e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRole.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @@ -158,7 +158,7 @@ public V1alpha1ClusterRole rules(List rules) { public V1alpha1ClusterRole addRulesItem(V1alpha1PolicyRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBinding.java index 277c7b4d9c..e77f837af3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -157,7 +157,7 @@ public V1alpha1ClusterRoleBinding subjects(List subjects) { public V1alpha1ClusterRoleBinding addSubjectsItem(RbacV1alpha1Subject subjectsItem) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } this.subjects.add(subjectsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBindingList.java index 7a3bd2a6d2..cd0a1b0ec2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -39,7 +39,7 @@ public class V1alpha1ClusterRoleBindingList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleList.java index 47d251118e..299c10a885 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterRoleList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -38,7 +38,7 @@ public class V1alpha1ClusterRoleList implements io.kubernetes.client.common.Kube public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowDistinguisherMethod.java index 0e057fd0a7..33e7862b26 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowDistinguisherMethod.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchema.java index 8c12d788e3..fc1a580337 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchema.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaCondition.java index bd0b851ebc..8b28fabcb2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,19 +15,19 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** FlowSchemaCondition describes conditions for a FlowSchema. */ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -49,7 +49,7 @@ public class V1alpha1FlowSchemaCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1alpha1FlowSchemaCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1alpha1FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -65,11 +65,11 @@ public V1alpha1FlowSchemaCondition lastTransitionTime(DateTime lastTransitionTim @ApiModelProperty( value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaList.java index c070785465..9a6df4004f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1alpha1FlowSchemaList implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaSpec.java index aaae2e5c23..1c26f83078 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @@ -124,7 +124,7 @@ public V1alpha1FlowSchemaSpec rules(List rules) public V1alpha1FlowSchemaSpec addRulesItem(V1alpha1PolicyRulesWithSubjects rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaStatus.java index 6bca6bab99..947afd9fbf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1FlowSchemaStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -38,7 +38,7 @@ public V1alpha1FlowSchemaStatus conditions(List con public V1alpha1FlowSchemaStatus addConditionsItem(V1alpha1FlowSchemaCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupSubject.java index a6686bb79b..e8ff2001a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitResponse.java index a3544920fe..d9f33fb64f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitResponse.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "LimitResponse defines how to handle requests that can not be executed right now.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitedPriorityLevelConfiguration.java index 86841e85c5..2d6e77bce1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LimitedPriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: * How are requests for this priority level limited? * What should be done with requests that exceed the limit?") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_ASSURED_CONCURRENCY_SHARES = "assuredConcurrencyShares"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NonResourcePolicyRule.java index 98c01afe5e..134d82f13f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NonResourcePolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,17 +30,17 @@ "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) - private List nonResourceURLs = new ArrayList(); + private List nonResourceURLs = new ArrayList<>(); public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1alpha1NonResourcePolicyRule nonResourceURLs(List nonResourceURLs) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Overhead.java index 70dbda7a15..b3309a6b94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Overhead.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Overhead.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Overhead structure represents the resource overhead associated with running a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @@ -41,7 +41,7 @@ public V1alpha1Overhead podFixed(Map podFixed) { public V1alpha1Overhead putPodFixedItem(String key, Quantity podFixedItem) { if (this.podFixed == null) { - this.podFixed = new HashMap(); + this.podFixed = new HashMap<>(); } this.podFixed.put(key, podFixedItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPreset.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPreset.java index dbd152486e..d9e80d8433 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPreset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPreset.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "PodPreset is a policy resource that defines additional runtime requirements for a Pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PodPreset implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetList.java index f04a23180d..d0685ba90b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodPresetList is a list of PodPreset objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PodPresetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1alpha1PodPresetList implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetSpec.java index a63082c721..33b96d0b22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodPresetSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodPresetSpec is a description of a pod preset.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PodPresetSpec { public static final String SERIALIZED_NAME_ENV = "env"; @@ -58,7 +58,7 @@ public V1alpha1PodPresetSpec env(List env) { public V1alpha1PodPresetSpec addEnvItem(V1EnvVar envItem) { if (this.env == null) { - this.env = new ArrayList(); + this.env = new ArrayList<>(); } this.env.add(envItem); return this; @@ -87,7 +87,7 @@ public V1alpha1PodPresetSpec envFrom(List envFrom) { public V1alpha1PodPresetSpec addEnvFromItem(V1EnvFromSource envFromItem) { if (this.envFrom == null) { - this.envFrom = new ArrayList(); + this.envFrom = new ArrayList<>(); } this.envFrom.add(envFromItem); return this; @@ -138,7 +138,7 @@ public V1alpha1PodPresetSpec volumeMounts(List volumeMounts) { public V1alpha1PodPresetSpec addVolumeMountsItem(V1VolumeMount volumeMountsItem) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + this.volumeMounts = new ArrayList<>(); } this.volumeMounts.add(volumeMountsItem); return this; @@ -168,7 +168,7 @@ public V1alpha1PodPresetSpec volumes(List volumes) { public V1alpha1PodPresetSpec addVolumesItem(V1Volume volumesItem) { if (this.volumes == null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); } this.volumes.add(volumesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRule.java index 787c7768c1..ea13fa227d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -53,7 +53,7 @@ public class V1alpha1PolicyRule { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1alpha1PolicyRule apiGroups(List apiGroups) { @@ -63,7 +63,7 @@ public V1alpha1PolicyRule apiGroups(List apiGroups) { public V1alpha1PolicyRule addApiGroupsItem(String apiGroupsItem) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(apiGroupsItem); return this; @@ -96,7 +96,7 @@ public V1alpha1PolicyRule nonResourceURLs(List nonResourceURLs) { public V1alpha1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(nonResourceURLsItem); return this; @@ -131,7 +131,7 @@ public V1alpha1PolicyRule resourceNames(List resourceNames) { public V1alpha1PolicyRule addResourceNamesItem(String resourceNamesItem) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(resourceNamesItem); return this; @@ -163,7 +163,7 @@ public V1alpha1PolicyRule resources(List resources) { public V1alpha1PolicyRule addResourcesItem(String resourcesItem) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(resourcesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRulesWithSubjects.java index 934bd4f015..bd83607541 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PolicyRulesWithSubjects.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @@ -46,7 +46,7 @@ public class V1alpha1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; @SerializedName(SERIALIZED_NAME_SUBJECTS) - private List subjects = new ArrayList(); + private List subjects = new ArrayList<>(); public V1alpha1PolicyRulesWithSubjects nonResourceRules( List nonResourceRules) { @@ -58,7 +58,7 @@ public V1alpha1PolicyRulesWithSubjects nonResourceRules( public V1alpha1PolicyRulesWithSubjects addNonResourceRulesItem( V1alpha1NonResourcePolicyRule nonResourceRulesItem) { if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + this.nonResourceRules = new ArrayList<>(); } this.nonResourceRules.add(nonResourceRulesItem); return this; @@ -92,7 +92,7 @@ public V1alpha1PolicyRulesWithSubjects resourceRules( public V1alpha1PolicyRulesWithSubjects addResourceRulesItem( V1alpha1ResourcePolicyRule resourceRulesItem) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + this.resourceRules = new ArrayList<>(); } this.resourceRules.add(resourceRulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClass.java index e95c75a601..a82d02572d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClassList.java index 20e81b2166..e28a3cb076 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PriorityClassList is a collection of priority classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1alpha1PriorityClassList implements io.kubernetes.client.common.Ku public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfiguration.java index 33dd1dd33e..33ddf6c30d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "PriorityLevelConfiguration represents the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationCondition.java index c0b515a81b..c79d2da8be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,20 +15,20 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** PriorityLevelConfigurationCondition defines the condition of priority level. */ @ApiModel( description = "PriorityLevelConfigurationCondition defines the condition of priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -51,7 +51,7 @@ public class V1alpha1PriorityLevelConfigurationCondition { private String type; public V1alpha1PriorityLevelConfigurationCondition lastTransitionTime( - DateTime lastTransitionTime) { + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -67,11 +67,11 @@ public V1alpha1PriorityLevelConfigurationCondition lastTransitionTime( @ApiModelProperty( value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationList.java index 6d576d37fe..3b93dacf8c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,8 +35,7 @@ public class V1alpha1PriorityLevelConfigurationList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationReference.java index 2f881231fb..368afcba23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationSpec.java index 1f727d7ac0..71048f8750 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_LIMITED = "limited"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationStatus.java index ccc2b222f7..002fe109e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PriorityLevelConfigurationStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -45,7 +45,7 @@ public V1alpha1PriorityLevelConfigurationStatus conditions( public V1alpha1PriorityLevelConfigurationStatus addConditionsItem( V1alpha1PriorityLevelConfigurationCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1QueuingConfiguration.java index c8a9e0c575..bca3101a55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1QueuingConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResourcePolicyRule.java index 0e80b9315a..71cd53fd77 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ResourcePolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,12 +31,12 @@ "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) least one member of namespaces matches the request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) - private List apiGroups = new ArrayList(); + private List apiGroups = new ArrayList<>(); public static final String SERIALIZED_NAME_CLUSTER_SCOPE = "clusterScope"; @@ -51,12 +51,12 @@ public class V1alpha1ResourcePolicyRule { public static final String SERIALIZED_NAME_RESOURCES = "resources"; @SerializedName(SERIALIZED_NAME_RESOURCES) - private List resources = new ArrayList(); + private List resources = new ArrayList<>(); public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1alpha1ResourcePolicyRule apiGroups(List apiGroups) { @@ -121,7 +121,7 @@ public V1alpha1ResourcePolicyRule namespaces(List namespaces) { public V1alpha1ResourcePolicyRule addNamespacesItem(String namespacesItem) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.add(namespacesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Role.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Role.java index c9862ddf1f..3ad271d979 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Role.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -132,7 +132,7 @@ public V1alpha1Role rules(List rules) { public V1alpha1Role addRulesItem(V1alpha1PolicyRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBinding.java index 3e3c7ba1c6..f05ffbed56 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -159,7 +159,7 @@ public V1alpha1RoleBinding subjects(List subjects) { public V1alpha1RoleBinding addSubjectsItem(RbacV1alpha1Subject subjectsItem) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } this.subjects.add(subjectsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBindingList.java index 4fe3d6692f..e9f64e4c10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -38,7 +38,7 @@ public class V1alpha1RoleBindingList implements io.kubernetes.client.common.Kube public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleList.java index bcd30e5ef7..57865c7a92 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -38,7 +38,7 @@ public class V1alpha1RoleList implements io.kubernetes.client.common.KubernetesL public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleRef.java index d719c798d3..212f3857ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RoleRef.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "RoleRef contains information that points to the role being used") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClass.java index d534d6d5be..adb38b3793 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassList.java index 0e59fb83e4..8e52ab3fed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1alpha1RuntimeClassList implements io.kubernetes.client.common.Kub public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassSpec.java index 6eaf9ac618..b97a8fed5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1RuntimeClassSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1RuntimeClassSpec { public static final String SERIALIZED_NAME_OVERHEAD = "overhead"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Scheduling.java index 5950d78809..923c9ba68d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Scheduling.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Scheduling.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @@ -47,7 +47,7 @@ public V1alpha1Scheduling nodeSelector(Map nodeSelector) { public V1alpha1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem) { if (this.nodeSelector == null) { - this.nodeSelector = new HashMap(); + this.nodeSelector = new HashMap<>(); } this.nodeSelector.put(key, nodeSelectorItem); return this; @@ -81,7 +81,7 @@ public V1alpha1Scheduling tolerations(List tolerations) { public V1alpha1Scheduling addTolerationsItem(V1Toleration tolerationsItem) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } this.tolerations.add(tolerationsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceAccountSubject.java index 23a84ff573..07f9745ada 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceAccountSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "ServiceAccountSubject holds detailed information for service-account-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1UserSubject.java index 75d1701f77..43edfa2e6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1UserSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachment.java index da8f815d97..de731394f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachment.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentList.java index 9f5291db58..7fe9cc1b07 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1alpha1VolumeAttachmentList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSource.java index bf3d021ff1..6a53290411 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSpec.java index 151b403fef..007c6b93a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentStatus.java index edcd406353..9efb66d872 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttachmentStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @@ -99,7 +99,7 @@ public V1alpha1VolumeAttachmentStatus attachmentMetadata(Map att public V1alpha1VolumeAttachmentStatus putAttachmentMetadataItem( String key, String attachmentMetadataItem) { if (this.attachmentMetadata == null) { - this.attachmentMetadata = new HashMap(); + this.attachmentMetadata = new HashMap<>(); } this.attachmentMetadata.put(key, attachmentMetadataItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeError.java index 21c847beee..5c8b4f1f4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeError.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,14 +15,14 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1alpha1VolumeError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -32,7 +32,7 @@ public class V1alpha1VolumeError { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) - private DateTime time; + private OffsetDateTime time; public V1alpha1VolumeError message(String message) { @@ -58,7 +58,7 @@ public void setMessage(String message) { this.message = message; } - public V1alpha1VolumeError time(DateTime time) { + public V1alpha1VolumeError time(OffsetDateTime time) { this.time = time; return this; @@ -71,11 +71,11 @@ public V1alpha1VolumeError time(DateTime time) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time the error was encountered.") - public DateTime getTime() { + public OffsetDateTime getTime() { return time; } - public void setTime(DateTime time) { + public void setTime(OffsetDateTime time) { this.time = time; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIService.java index c83f65368f..55928389b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIService.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceCondition.java index ef64aa6c30..c3b4c69705 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,20 +15,20 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel( description = "APIServiceCondition describes the state of an APIService at a particular point") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -50,7 +50,7 @@ public class V1beta1APIServiceCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1beta1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1beta1APIServiceCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -63,11 +63,11 @@ public V1beta1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime */ @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceList.java index 3ffff85a94..e02203a315 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceList is a list of APIService objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1APIServiceList implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceSpec.java index f0a19046f9..3fcf95d576 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceStatus.java index f59f53c0e1..3632955e80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1APIServiceStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceStatus contains derived information about an API server") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -38,7 +38,7 @@ public V1beta1APIServiceStatus conditions(List condi public V1beta1APIServiceStatus addConditionsItem(V1beta1APIServiceCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AggregationRule.java index bc31f2eb83..53241609e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AggregationRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @@ -41,7 +41,7 @@ public V1beta1AggregationRule clusterRoleSelectors(List cluster public V1beta1AggregationRule addClusterRoleSelectorsItem( V1LabelSelector clusterRoleSelectorsItem) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); + this.clusterRoleSelectors = new ArrayList<>(); } this.clusterRoleSelectors.add(clusterRoleSelectorsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriver.java index 3015ccf417..19b800af77 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriver.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1AllowedCSIDriver { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolume.java index fa0ed92a75..952df3015c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolume.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1AllowedFlexVolume { public static final String SERIALIZED_NAME_DRIVER = "driver"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPath.java index 6ba3401f47..3d7a2a82a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPath.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1AllowedHostPath { public static final String SERIALIZED_NAME_PATH_PREFIX = "pathPrefix"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriver.java index 16d4678c90..12ab3c110d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriver.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverList.java index efa45fd181..6b5aa682c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1CSIDriverList implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverSpec.java index 6a7bcfe35f..5c3c53acd6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIDriverSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @@ -184,7 +184,7 @@ public V1beta1CSIDriverSpec volumeLifecycleModes(List volumeLifecycleMod public V1beta1CSIDriverSpec addVolumeLifecycleModesItem(String volumeLifecycleModesItem) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + this.volumeLifecycleModes = new ArrayList<>(); } this.volumeLifecycleModes.add(volumeLifecycleModesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINode.java index 8e49f049a6..fcb4ced0a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINode.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -32,7 +32,7 @@ "DEPRECATED - This group version of CSINode is deprecated by storage/v1/CSINode. See the release notes for more information. CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeDriver.java index 18685c2168..195c632e65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeDriver.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CSINodeDriver holds information about the specification of one CSI driver installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @@ -129,7 +129,7 @@ public V1beta1CSINodeDriver topologyKeys(List topologyKeys) { public V1beta1CSINodeDriver addTopologyKeysItem(String topologyKeysItem) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList<>(); } this.topologyKeys.add(topologyKeysItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeList.java index 55a585abf3..9447679655 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1CSINodeList implements io.kubernetes.client.common.Kubernete public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeSpec.java index 2c2d540ce6..cf0c8d1300 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSINodeSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,12 +25,12 @@ "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_DRIVERS) - private List drivers = new ArrayList(); + private List drivers = new ArrayList<>(); public V1beta1CSINodeSpec drivers(List drivers) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequest.java index afedbb96e4..dc86bc61c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequest.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Describes a certificate signing request") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestCondition.java index 795bd185fb..9abdf5b1b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -14,23 +14,23 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** V1beta1CertificateSigningRequestCondition */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) - private DateTime lastUpdateTime; + private OffsetDateTime lastUpdateTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -52,7 +52,8 @@ public class V1beta1CertificateSigningRequestCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1beta1CertificateSigningRequestCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1beta1CertificateSigningRequestCondition lastTransitionTime( + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -69,15 +70,15 @@ public V1beta1CertificateSigningRequestCondition lastTransitionTime(DateTime las @ApiModelProperty( value = "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } - public V1beta1CertificateSigningRequestCondition lastUpdateTime(DateTime lastUpdateTime) { + public V1beta1CertificateSigningRequestCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; @@ -90,11 +91,11 @@ public V1beta1CertificateSigningRequestCondition lastUpdateTime(DateTime lastUpd */ @javax.annotation.Nullable @ApiModelProperty(value = "timestamp for the last update to this condition") - public DateTime getLastUpdateTime() { + public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } - public void setLastUpdateTime(DateTime lastUpdateTime) { + public void setLastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestList.java index cd86e22afb..e293faa55f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ /** V1beta1CertificateSigningRequestList */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -32,8 +32,7 @@ public class V1beta1CertificateSigningRequestList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestSpec.java index 1627868322..c91b3d0101 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @@ -76,7 +76,7 @@ public V1beta1CertificateSigningRequestSpec extra(Map> extr public V1beta1CertificateSigningRequestSpec putExtraItem(String key, List extraItem) { if (this.extra == null) { - this.extra = new HashMap>(); + this.extra = new HashMap<>(); } this.extra.put(key, extraItem); return this; @@ -106,7 +106,7 @@ public V1beta1CertificateSigningRequestSpec groups(List groups) { public V1beta1CertificateSigningRequestSpec addGroupsItem(String groupsItem) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(groupsItem); return this; @@ -207,7 +207,7 @@ public V1beta1CertificateSigningRequestSpec usages(List usages) { public V1beta1CertificateSigningRequestSpec addUsagesItem(String usagesItem) { if (this.usages == null) { - this.usages = new ArrayList(); + this.usages = new ArrayList<>(); } this.usages.add(usagesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestStatus.java index 8043fce527..b1265a0a4a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CertificateSigningRequestStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ /** V1beta1CertificateSigningRequestStatus */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @@ -66,7 +66,7 @@ public V1beta1CertificateSigningRequestStatus conditions( public V1beta1CertificateSigningRequestStatus addConditionsItem( V1beta1CertificateSigningRequestCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRole.java index 1331a36c98..cda075999e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRole.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @@ -158,7 +158,7 @@ public V1beta1ClusterRole rules(List rules) { public V1beta1ClusterRole addRulesItem(V1beta1PolicyRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBinding.java index c16027639e..9a2acf5f8d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -157,7 +157,7 @@ public V1beta1ClusterRoleBinding subjects(List subjects) { public V1beta1ClusterRoleBinding addSubjectsItem(V1beta1Subject subjectsItem) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } this.subjects.add(subjectsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBindingList.java index aa65957da2..e082c15fe8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -39,7 +39,7 @@ public class V1beta1ClusterRoleBindingList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleList.java index 0b81c66f51..5bcf3d48df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterRoleList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -38,7 +38,7 @@ public class V1beta1ClusterRoleList implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJob.java index 1b85e2839a..e2606934fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJob.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "CronJob represents the configuration of a single cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobList.java index c5d30cb7cd..3bab5e4c3e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CronJobList is a collection of cron jobs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1CronJobList implements io.kubernetes.client.common.Kubernete public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpec.java index cc19e3ddb8..65cd82d05c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "CronJobSpec describes how the job execution will look like and when it will actually run.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatus.java index dfb58144c7..21af090db5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,16 +15,16 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @@ -34,7 +34,7 @@ public class V1beta1CronJobStatus { public static final String SERIALIZED_NAME_LAST_SCHEDULE_TIME = "lastScheduleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCHEDULE_TIME) - private DateTime lastScheduleTime; + private OffsetDateTime lastScheduleTime; public V1beta1CronJobStatus active(List active) { @@ -44,7 +44,7 @@ public V1beta1CronJobStatus active(List active) { public V1beta1CronJobStatus addActiveItem(V1ObjectReference activeItem) { if (this.active == null) { - this.active = new ArrayList(); + this.active = new ArrayList<>(); } this.active.add(activeItem); return this; @@ -65,7 +65,7 @@ public void setActive(List active) { this.active = active; } - public V1beta1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { + public V1beta1CronJobStatus lastScheduleTime(OffsetDateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; return this; @@ -79,11 +79,11 @@ public V1beta1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { @javax.annotation.Nullable @ApiModelProperty( value = "Information when was the last time the job was successfully scheduled.") - public DateTime getLastScheduleTime() { + public OffsetDateTime getLastScheduleTime() { return lastScheduleTime; } - public void setLastScheduleTime(DateTime lastScheduleTime) { + public void setLastScheduleTime(OffsetDateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceColumnDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceColumnDefinition.java index 378f1beded..d278f03b8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceColumnDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceColumnDefinition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "CustomResourceColumnDefinition specifies a column for server side printing.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_JS_O_N_PATH = "JSONPath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceConversion.java index 74f0084a10..78134abf0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceConversion.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "CustomResourceConversion describes how to convert different versions of a CR.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceConversion { public static final String SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS = "conversionReviewVersions"; @@ -52,7 +52,7 @@ public V1beta1CustomResourceConversion conversionReviewVersions( public V1beta1CustomResourceConversion addConversionReviewVersionsItem( String conversionReviewVersionsItem) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); + this.conversionReviewVersions = new ArrayList<>(); } this.conversionReviewVersions.add(conversionReviewVersionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinition.java index 30b9b0f3ad..295d8fae06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionCondition.java index 8f7d27db14..a1f86c4619 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel( @@ -24,12 +24,12 @@ "CustomResourceDefinitionCondition contains details for the current condition of this pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -51,7 +51,8 @@ public class V1beta1CustomResourceDefinitionCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V1beta1CustomResourceDefinitionCondition lastTransitionTime(DateTime lastTransitionTime) { + public V1beta1CustomResourceDefinitionCondition lastTransitionTime( + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -65,11 +66,11 @@ public V1beta1CustomResourceDefinitionCondition lastTransitionTime(DateTime last @javax.annotation.Nullable @ApiModelProperty( value = "lastTransitionTime last time the condition transitioned from one status to another.") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionList.java index a3fa31c7da..cfc3bff271 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,8 +35,7 @@ public class V1beta1CustomResourceDefinitionList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionNames.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionNames.java index fb95c8a67f..4d5a05d6be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionNames.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionNames.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @@ -65,7 +65,7 @@ public V1beta1CustomResourceDefinitionNames categories(List categories) public V1beta1CustomResourceDefinitionNames addCategoriesItem(String categoriesItem) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList<>(); } this.categories.add(categoriesItem); return this; @@ -172,7 +172,7 @@ public V1beta1CustomResourceDefinitionNames shortNames(List shortNames) public V1beta1CustomResourceDefinitionNames addShortNamesItem(String shortNamesItem) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + this.shortNames = new ArrayList<>(); } this.shortNames.add(shortNamesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionSpec.java index a18469519c..8f6f2b1f3e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionSpec describes how a user wants their resource to appear") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @@ -88,7 +88,7 @@ public V1beta1CustomResourceDefinitionSpec additionalPrinterColumns( public V1beta1CustomResourceDefinitionSpec addAdditionalPrinterColumnsItem( V1beta1CustomResourceColumnDefinition additionalPrinterColumnsItem) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); } this.additionalPrinterColumns.add(additionalPrinterColumnsItem); return this; @@ -318,7 +318,7 @@ public V1beta1CustomResourceDefinitionSpec versions( public V1beta1CustomResourceDefinitionSpec addVersionsItem( V1beta1CustomResourceDefinitionVersion versionsItem) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.add(versionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionStatus.java index d8177faed8..6a790f28c8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @@ -74,7 +74,7 @@ public V1beta1CustomResourceDefinitionStatus conditions( public V1beta1CustomResourceDefinitionStatus addConditionsItem( V1beta1CustomResourceDefinitionCondition conditionsItem) { if (this.conditions == null) { - this.conditions = new ArrayList(); + this.conditions = new ArrayList<>(); } this.conditions.add(conditionsItem); return this; @@ -104,7 +104,7 @@ public V1beta1CustomResourceDefinitionStatus storedVersions(List storedV public V1beta1CustomResourceDefinitionStatus addStoredVersionsItem(String storedVersionsItem) { if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + this.storedVersions = new ArrayList<>(); } this.storedVersions.add(storedVersionsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionVersion.java index 0f850c6e9d..35bec10f0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceDefinitionVersion.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @@ -76,7 +76,7 @@ public V1beta1CustomResourceDefinitionVersion additionalPrinterColumns( public V1beta1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem( V1beta1CustomResourceColumnDefinition additionalPrinterColumnsItem) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + this.additionalPrinterColumns = new ArrayList<>(); } this.additionalPrinterColumns.add(additionalPrinterColumnsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresourceScale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresourceScale.java index 79a0f4a432..31f373ff64 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresourceScale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresourceScale.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresources.java index 59ed77671b..773bdc150d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceSubresources.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "CustomResourceSubresources defines the status and scale subresources for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceValidation.java index ac96317836..ed81cae360 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceValidation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CustomResourceValidation.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "CustomResourceValidation is a list of validation methods for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Endpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Endpoint.java index d77fb86b54..0311f47fc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Endpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Endpoint.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,12 +25,12 @@ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = new ArrayList(); + private List addresses = new ArrayList<>(); public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -159,7 +159,7 @@ public V1beta1Endpoint topology(Map topology) { public V1beta1Endpoint putTopologyItem(String key, String topologyItem) { if (this.topology == null) { - this.topology = new HashMap(); + this.topology = new HashMap<>(); } this.topology.put(key, topologyItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditions.java index 0c1dea5abe..774d1a2f8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPort.java index e9a1b6d09e..0b57fab2dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPort.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSlice.java index f623645eb2..5af6e8bf34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSlice.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @@ -44,7 +44,7 @@ public class V1beta1EndpointSlice implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) - private List endpoints = new ArrayList(); + private List endpoints = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @@ -197,7 +197,7 @@ public V1beta1EndpointSlice ports(List ports) { public V1beta1EndpointSlice addPortsItem(V1beta1EndpointPort portsItem) { if (this.ports == null) { - this.ports = new ArrayList(); + this.ports = new ArrayList<>(); } this.ports.add(portsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceList.java index d706b7dbdd..804c845c9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1EndpointSliceList implements io.kubernetes.client.common.Kub public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Event.java index 3fb03ac3ce..cc7cad5e68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Event.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * Event is a report of an event somewhere in the cluster. It generally denotes some state change in @@ -27,7 +27,7 @@ "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @@ -48,12 +48,12 @@ public class V1beta1Event implements io.kubernetes.client.common.KubernetesObjec "deprecatedFirstTimestamp"; @SerializedName(SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP) - private DateTime deprecatedFirstTimestamp; + private OffsetDateTime deprecatedFirstTimestamp; public static final String SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP = "deprecatedLastTimestamp"; @SerializedName(SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP) - private DateTime deprecatedLastTimestamp; + private OffsetDateTime deprecatedLastTimestamp; public static final String SERIALIZED_NAME_DEPRECATED_SOURCE = "deprecatedSource"; @@ -63,7 +63,7 @@ public class V1beta1Event implements io.kubernetes.client.common.KubernetesObjec public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) - private DateTime eventTime; + private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_KIND = "kind"; @@ -189,7 +189,7 @@ public void setDeprecatedCount(Integer deprecatedCount) { this.deprecatedCount = deprecatedCount; } - public V1beta1Event deprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) { + public V1beta1Event deprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; return this; @@ -205,15 +205,15 @@ public V1beta1Event deprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) @ApiModelProperty( value = "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - public DateTime getDeprecatedFirstTimestamp() { + public OffsetDateTime getDeprecatedFirstTimestamp() { return deprecatedFirstTimestamp; } - public void setDeprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) { + public void setDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; } - public V1beta1Event deprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { + public V1beta1Event deprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; return this; @@ -229,11 +229,11 @@ public V1beta1Event deprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { @ApiModelProperty( value = "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - public DateTime getDeprecatedLastTimestamp() { + public OffsetDateTime getDeprecatedLastTimestamp() { return deprecatedLastTimestamp; } - public void setDeprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { + public void setDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; } @@ -258,7 +258,7 @@ public void setDeprecatedSource(V1EventSource deprecatedSource) { this.deprecatedSource = deprecatedSource; } - public V1beta1Event eventTime(DateTime eventTime) { + public V1beta1Event eventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; return this; @@ -272,11 +272,11 @@ public V1beta1Event eventTime(DateTime eventTime) { @ApiModelProperty( required = true, value = "eventTime is the time when this Event was first observed. It is required.") - public DateTime getEventTime() { + public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(DateTime eventTime) { + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventList.java index 622654922b..e7e3732083 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EventList is a list of Event objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1EventList implements io.kubernetes.client.common.KubernetesL public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeries.java index 6e6d64be36..eab421c94f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeries.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * EventSeries contain information on series of events, i.e. thing that was/is happening @@ -27,7 +27,7 @@ "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @@ -37,7 +37,7 @@ public class V1beta1EventSeries { public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) - private DateTime lastObservedTime; + private OffsetDateTime lastObservedTime; public V1beta1EventSeries count(Integer count) { @@ -61,7 +61,7 @@ public void setCount(Integer count) { this.count = count; } - public V1beta1EventSeries lastObservedTime(DateTime lastObservedTime) { + public V1beta1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; return this; @@ -76,11 +76,11 @@ public V1beta1EventSeries lastObservedTime(DateTime lastObservedTime) { required = true, value = "lastObservedTime is the time when last Event from the series was seen before last heartbeat.") - public DateTime getLastObservedTime() { + public OffsetDateTime getLastObservedTime() { return lastObservedTime; } - public void setLastObservedTime(DateTime lastObservedTime) { + public void setLastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Eviction.java index b41e3daba2..524179692e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Eviction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Eviction.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExternalDocumentation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExternalDocumentation.java index 22fbab4989..cae6047fc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExternalDocumentation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExternalDocumentation.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "ExternalDocumentation allows referencing an external resource for extended documentation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptions.java index 86f2c384dc..dd5385315d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -25,7 +25,7 @@ "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1FSGroupStrategyOptions { public static final String SERIALIZED_NAME_RANGES = "ranges"; @@ -45,7 +45,7 @@ public V1beta1FSGroupStrategyOptions ranges(List ranges) { public V1beta1FSGroupStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { if (this.ranges == null) { - this.ranges = new ArrayList(); + this.ranges = new ArrayList<>(); } this.ranges.add(rangesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRange.java index e0615a4bd4..c41849578f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRange.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1HostPortRange { public static final String SERIALIZED_NAME_MAX = "max"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRange.java index 1bfe878876..2ea12b46e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRange.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IDRange provides a min/max of an allowed range of IDs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1IDRange { public static final String SERIALIZED_NAME_MAX = "max"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClass.java index 70602c9270..797faf92ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassList.java index 8307b58a0b..215e548241 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1IngressClassList implements io.kubernetes.client.common.Kube public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassSpec.java index 8909581ef4..931a0c09e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IngressClassSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONSchemaProps.java index f26fde2e9f..d95577f8f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONSchemaProps.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONSchemaProps.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @@ -346,7 +346,7 @@ public V1beta1JSONSchemaProps allOf(List allOf) { public V1beta1JSONSchemaProps addAllOfItem(V1beta1JSONSchemaProps allOfItem) { if (this.allOf == null) { - this.allOf = new ArrayList(); + this.allOf = new ArrayList<>(); } this.allOf.add(allOfItem); return this; @@ -375,7 +375,7 @@ public V1beta1JSONSchemaProps anyOf(List anyOf) { public V1beta1JSONSchemaProps addAnyOfItem(V1beta1JSONSchemaProps anyOfItem) { if (this.anyOf == null) { - this.anyOf = new ArrayList(); + this.anyOf = new ArrayList<>(); } this.anyOf.add(anyOfItem); return this; @@ -430,7 +430,7 @@ public V1beta1JSONSchemaProps definitions(Map de public V1beta1JSONSchemaProps putDefinitionsItem( String key, V1beta1JSONSchemaProps definitionsItem) { if (this.definitions == null) { - this.definitions = new HashMap(); + this.definitions = new HashMap<>(); } this.definitions.put(key, definitionsItem); return this; @@ -459,7 +459,7 @@ public V1beta1JSONSchemaProps dependencies(Map dependencies) { public V1beta1JSONSchemaProps putDependenciesItem(String key, Object dependenciesItem) { if (this.dependencies == null) { - this.dependencies = new HashMap(); + this.dependencies = new HashMap<>(); } this.dependencies.put(key, dependenciesItem); return this; @@ -509,7 +509,7 @@ public V1beta1JSONSchemaProps _enum(List _enum) { public V1beta1JSONSchemaProps addEnumItem(Object _enumItem) { if (this._enum == null) { - this._enum = new ArrayList(); + this._enum = new ArrayList<>(); } this._enum.add(_enumItem); return this; @@ -949,7 +949,7 @@ public V1beta1JSONSchemaProps oneOf(List oneOf) { public V1beta1JSONSchemaProps addOneOfItem(V1beta1JSONSchemaProps oneOfItem) { if (this.oneOf == null) { - this.oneOf = new ArrayList(); + this.oneOf = new ArrayList<>(); } this.oneOf.add(oneOfItem); return this; @@ -1001,7 +1001,7 @@ public V1beta1JSONSchemaProps patternProperties( public V1beta1JSONSchemaProps putPatternPropertiesItem( String key, V1beta1JSONSchemaProps patternPropertiesItem) { if (this.patternProperties == null) { - this.patternProperties = new HashMap(); + this.patternProperties = new HashMap<>(); } this.patternProperties.put(key, patternPropertiesItem); return this; @@ -1031,7 +1031,7 @@ public V1beta1JSONSchemaProps properties(Map pro public V1beta1JSONSchemaProps putPropertiesItem( String key, V1beta1JSONSchemaProps propertiesItem) { if (this.properties == null) { - this.properties = new HashMap(); + this.properties = new HashMap<>(); } this.properties.put(key, propertiesItem); return this; @@ -1060,7 +1060,7 @@ public V1beta1JSONSchemaProps required(List required) { public V1beta1JSONSchemaProps addRequiredItem(String requiredItem) { if (this.required == null) { - this.required = new ArrayList(); + this.required = new ArrayList<>(); } this.required.add(requiredItem); return this; @@ -1205,7 +1205,7 @@ public V1beta1JSONSchemaProps xKubernetesListMapKeys(List xKubernetesLis public V1beta1JSONSchemaProps addXKubernetesListMapKeysItem(String xKubernetesListMapKeysItem) { if (this.xKubernetesListMapKeys == null) { - this.xKubernetesListMapKeys = new ArrayList(); + this.xKubernetesListMapKeys = new ArrayList<>(); } this.xKubernetesListMapKeys.add(xKubernetesListMapKeysItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpec.java index 99a6acec81..79490c4f13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "JobTemplateSpec describes the data a Job should have when created from a template") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Lease.java index 40c4693f5e..006c9a0085 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Lease.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Lease defines a lease concept.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseList.java index 33aa183375..1505549e08 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "LeaseList is a list of Lease objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1LeaseList implements io.kubernetes.client.common.KubernetesL public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseSpec.java index ab1d97c701..62137e97aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,19 +15,19 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) - private DateTime acquireTime; + private OffsetDateTime acquireTime; public static final String SERIALIZED_NAME_HOLDER_IDENTITY = "holderIdentity"; @@ -47,9 +47,9 @@ public class V1beta1LeaseSpec { public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; @SerializedName(SERIALIZED_NAME_RENEW_TIME) - private DateTime renewTime; + private OffsetDateTime renewTime; - public V1beta1LeaseSpec acquireTime(DateTime acquireTime) { + public V1beta1LeaseSpec acquireTime(OffsetDateTime acquireTime) { this.acquireTime = acquireTime; return this; @@ -62,11 +62,11 @@ public V1beta1LeaseSpec acquireTime(DateTime acquireTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "acquireTime is a time when the current lease was acquired.") - public DateTime getAcquireTime() { + public OffsetDateTime getAcquireTime() { return acquireTime; } - public void setAcquireTime(DateTime acquireTime) { + public void setAcquireTime(OffsetDateTime acquireTime) { this.acquireTime = acquireTime; } @@ -138,7 +138,7 @@ public void setLeaseTransitions(Integer leaseTransitions) { this.leaseTransitions = leaseTransitions; } - public V1beta1LeaseSpec renewTime(DateTime renewTime) { + public V1beta1LeaseSpec renewTime(OffsetDateTime renewTime) { this.renewTime = renewTime; return this; @@ -152,11 +152,11 @@ public V1beta1LeaseSpec renewTime(DateTime renewTime) { @javax.annotation.Nullable @ApiModelProperty( value = "renewTime is a time when the current holder of a lease has last updated the lease.") - public DateTime getRenewTime() { + public OffsetDateTime getRenewTime() { return renewTime; } - public void setRenewTime(DateTime renewTime) { + public void setRenewTime(OffsetDateTime renewTime) { this.renewTime = renewTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LocalSubjectAccessReview.java index d5f37303f1..3d9da091d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LocalSubjectAccessReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhook.java index 0845b90099..a2ccdd6183 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhook.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @@ -92,7 +92,7 @@ public V1beta1MutatingWebhook admissionReviewVersions(List admissionRevi public V1beta1MutatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVersionsItem) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } this.admissionReviewVersions.add(admissionReviewVersionsItem); return this; @@ -308,7 +308,7 @@ public V1beta1MutatingWebhook rules(List rules) { public V1beta1MutatingWebhook addRulesItem(V1beta1RuleWithOperations rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfiguration.java index 2e94036894..be8e4d35ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -133,7 +133,7 @@ public V1beta1MutatingWebhookConfiguration webhooks(List public V1beta1MutatingWebhookConfiguration addWebhooksItem(V1beta1MutatingWebhook webhooksItem) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList<>(); } this.webhooks.add(webhooksItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfigurationList.java index 35a60407c0..9f272d8955 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingWebhookConfigurationList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,8 +35,7 @@ public class V1beta1MutatingWebhookConfigurationList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceAttributes.java index 4a2a94d896..c70350191c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceAttributes.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceRule.java index 54a71bc357..3967dcb583 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourceRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "NonResourceRule holds information that describes a rule for the non-resource") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @@ -34,7 +34,7 @@ public class V1beta1NonResourceRule { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1beta1NonResourceRule nonResourceURLs(List nonResourceURLs) { @@ -44,7 +44,7 @@ public V1beta1NonResourceRule nonResourceURLs(List nonResourceURLs) { public V1beta1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(nonResourceURLsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Overhead.java index 349a5680fd..83ebb8ee7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Overhead.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Overhead.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "Overhead structure represents the resource overhead associated with running a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @@ -41,7 +41,7 @@ public V1beta1Overhead podFixed(Map podFixed) { public V1beta1Overhead putPodFixedItem(String key, Quantity podFixedItem) { if (this.podFixed == null) { - this.podFixed = new HashMap(); + this.podFixed = new HashMap<>(); } this.podFixed.put(key, podFixedItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudget.java index 20d12fed19..94188cc3e4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudget.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetList.java index 38e65f0944..f1bc89f397 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1beta1PodDisruptionBudgetList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpec.java index ff00730187..506cd7063e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatus.java index 53c70df10b..65e4c9994a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,10 +15,10 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; -import org.joda.time.DateTime; /** * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. @@ -29,7 +29,7 @@ "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CURRENT_HEALTHY = "currentHealthy"; @@ -44,7 +44,7 @@ public class V1beta1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_DISRUPTED_PODS = "disruptedPods"; @SerializedName(SERIALIZED_NAME_DISRUPTED_PODS) - private Map disruptedPods = null; + private Map disruptedPods = null; public static final String SERIALIZED_NAME_DISRUPTIONS_ALLOWED = "disruptionsAllowed"; @@ -101,16 +101,16 @@ public void setDesiredHealthy(Integer desiredHealthy) { this.desiredHealthy = desiredHealthy; } - public V1beta1PodDisruptionBudgetStatus disruptedPods(Map disruptedPods) { + public V1beta1PodDisruptionBudgetStatus disruptedPods(Map disruptedPods) { this.disruptedPods = disruptedPods; return this; } public V1beta1PodDisruptionBudgetStatus putDisruptedPodsItem( - String key, DateTime disruptedPodsItem) { + String key, OffsetDateTime disruptedPodsItem) { if (this.disruptedPods == null) { - this.disruptedPods = new HashMap(); + this.disruptedPods = new HashMap<>(); } this.disruptedPods.put(key, disruptedPodsItem); return this; @@ -133,11 +133,11 @@ public V1beta1PodDisruptionBudgetStatus putDisruptedPodsItem( @ApiModelProperty( value = "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.") - public Map getDisruptedPods() { + public Map getDisruptedPods() { return disruptedPods; } - public void setDisruptedPods(Map disruptedPods) { + public void setDisruptedPods(Map disruptedPods) { this.disruptedPods = disruptedPods; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicy.java index c5179150d5..08f04aba81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PodSecurityPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyList.java index a7b4bbe1cd..d6f9765f98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodSecurityPolicyList is a list of PodSecurityPolicy objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PodSecurityPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1beta1PodSecurityPolicyList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpec.java index 3a037a311b..38edd7b755 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodSecurityPolicySpec defines the policy enforced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PodSecurityPolicySpec { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @@ -182,7 +182,7 @@ public V1beta1PodSecurityPolicySpec allowedCSIDrivers( public V1beta1PodSecurityPolicySpec addAllowedCSIDriversItem( V1beta1AllowedCSIDriver allowedCSIDriversItem) { if (this.allowedCSIDrivers == null) { - this.allowedCSIDrivers = new ArrayList(); + this.allowedCSIDrivers = new ArrayList<>(); } this.allowedCSIDrivers.add(allowedCSIDriversItem); return this; @@ -216,7 +216,7 @@ public V1beta1PodSecurityPolicySpec allowedCapabilities(List allowedCapa public V1beta1PodSecurityPolicySpec addAllowedCapabilitiesItem(String allowedCapabilitiesItem) { if (this.allowedCapabilities == null) { - this.allowedCapabilities = new ArrayList(); + this.allowedCapabilities = new ArrayList<>(); } this.allowedCapabilities.add(allowedCapabilitiesItem); return this; @@ -251,7 +251,7 @@ public V1beta1PodSecurityPolicySpec allowedFlexVolumes( public V1beta1PodSecurityPolicySpec addAllowedFlexVolumesItem( V1beta1AllowedFlexVolume allowedFlexVolumesItem) { if (this.allowedFlexVolumes == null) { - this.allowedFlexVolumes = new ArrayList(); + this.allowedFlexVolumes = new ArrayList<>(); } this.allowedFlexVolumes.add(allowedFlexVolumesItem); return this; @@ -286,7 +286,7 @@ public V1beta1PodSecurityPolicySpec allowedHostPaths( public V1beta1PodSecurityPolicySpec addAllowedHostPathsItem( V1beta1AllowedHostPath allowedHostPathsItem) { if (this.allowedHostPaths == null) { - this.allowedHostPaths = new ArrayList(); + this.allowedHostPaths = new ArrayList<>(); } this.allowedHostPaths.add(allowedHostPathsItem); return this; @@ -319,7 +319,7 @@ public V1beta1PodSecurityPolicySpec allowedProcMountTypes(List allowedPr public V1beta1PodSecurityPolicySpec addAllowedProcMountTypesItem( String allowedProcMountTypesItem) { if (this.allowedProcMountTypes == null) { - this.allowedProcMountTypes = new ArrayList(); + this.allowedProcMountTypes = new ArrayList<>(); } this.allowedProcMountTypes.add(allowedProcMountTypesItem); return this; @@ -352,7 +352,7 @@ public V1beta1PodSecurityPolicySpec allowedUnsafeSysctls(List allowedUns public V1beta1PodSecurityPolicySpec addAllowedUnsafeSysctlsItem(String allowedUnsafeSysctlsItem) { if (this.allowedUnsafeSysctls == null) { - this.allowedUnsafeSysctls = new ArrayList(); + this.allowedUnsafeSysctls = new ArrayList<>(); } this.allowedUnsafeSysctls.add(allowedUnsafeSysctlsItem); return this; @@ -389,7 +389,7 @@ public V1beta1PodSecurityPolicySpec defaultAddCapabilities(List defaultA public V1beta1PodSecurityPolicySpec addDefaultAddCapabilitiesItem( String defaultAddCapabilitiesItem) { if (this.defaultAddCapabilities == null) { - this.defaultAddCapabilities = new ArrayList(); + this.defaultAddCapabilities = new ArrayList<>(); } this.defaultAddCapabilities.add(defaultAddCapabilitiesItem); return this; @@ -448,7 +448,7 @@ public V1beta1PodSecurityPolicySpec forbiddenSysctls(List forbiddenSysct public V1beta1PodSecurityPolicySpec addForbiddenSysctlsItem(String forbiddenSysctlsItem) { if (this.forbiddenSysctls == null) { - this.forbiddenSysctls = new ArrayList(); + this.forbiddenSysctls = new ArrayList<>(); } this.forbiddenSysctls.add(forbiddenSysctlsItem); return this; @@ -569,7 +569,7 @@ public V1beta1PodSecurityPolicySpec hostPorts(List hostPor public V1beta1PodSecurityPolicySpec addHostPortsItem(V1beta1HostPortRange hostPortsItem) { if (this.hostPorts == null) { - this.hostPorts = new ArrayList(); + this.hostPorts = new ArrayList<>(); } this.hostPorts.add(hostPortsItem); return this; @@ -648,7 +648,7 @@ public V1beta1PodSecurityPolicySpec requiredDropCapabilities( public V1beta1PodSecurityPolicySpec addRequiredDropCapabilitiesItem( String requiredDropCapabilitiesItem) { if (this.requiredDropCapabilities == null) { - this.requiredDropCapabilities = new ArrayList(); + this.requiredDropCapabilities = new ArrayList<>(); } this.requiredDropCapabilities.add(requiredDropCapabilitiesItem); return this; @@ -784,7 +784,7 @@ public V1beta1PodSecurityPolicySpec volumes(List volumes) { public V1beta1PodSecurityPolicySpec addVolumesItem(String volumesItem) { if (this.volumes == null) { - this.volumes = new ArrayList(); + this.volumes = new ArrayList<>(); } this.volumes.add(volumesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRule.java index cae75d6e56..356e59ed76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -53,7 +53,7 @@ public class V1beta1PolicyRule { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1beta1PolicyRule apiGroups(List apiGroups) { @@ -63,7 +63,7 @@ public V1beta1PolicyRule apiGroups(List apiGroups) { public V1beta1PolicyRule addApiGroupsItem(String apiGroupsItem) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(apiGroupsItem); return this; @@ -96,7 +96,7 @@ public V1beta1PolicyRule nonResourceURLs(List nonResourceURLs) { public V1beta1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList<>(); } this.nonResourceURLs.add(nonResourceURLsItem); return this; @@ -131,7 +131,7 @@ public V1beta1PolicyRule resourceNames(List resourceNames) { public V1beta1PolicyRule addResourceNamesItem(String resourceNamesItem) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(resourceNamesItem); return this; @@ -163,7 +163,7 @@ public V1beta1PolicyRule resources(List resources) { public V1beta1PolicyRule addResourcesItem(String resourcesItem) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(resourcesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClass.java index aed3b6484f..a82c4c4e91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClassList.java index aebdc2a1dd..ed3847d849 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PriorityClassList is a collection of priority classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1PriorityClassList implements io.kubernetes.client.common.Kub public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceAttributes.java index 6bff3d896f..6f9bba1cc5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceAttributes.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ResourceAttributes { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceRule.java index 7e872adcdb..70ff1317e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceRule.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -48,7 +48,7 @@ public class V1beta1ResourceRule { public static final String SERIALIZED_NAME_VERBS = "verbs"; @SerializedName(SERIALIZED_NAME_VERBS) - private List verbs = new ArrayList(); + private List verbs = new ArrayList<>(); public V1beta1ResourceRule apiGroups(List apiGroups) { @@ -58,7 +58,7 @@ public V1beta1ResourceRule apiGroups(List apiGroups) { public V1beta1ResourceRule addApiGroupsItem(String apiGroupsItem) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(apiGroupsItem); return this; @@ -91,7 +91,7 @@ public V1beta1ResourceRule resourceNames(List resourceNames) { public V1beta1ResourceRule addResourceNamesItem(String resourceNamesItem) { if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + this.resourceNames = new ArrayList<>(); } this.resourceNames.add(resourceNamesItem); return this; @@ -123,7 +123,7 @@ public V1beta1ResourceRule resources(List resources) { public V1beta1ResourceRule addResourcesItem(String resourcesItem) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(resourcesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Role.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Role.java index 1bcfab866f..05de1ae7a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Role.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -132,7 +132,7 @@ public V1beta1Role rules(List rules) { public V1beta1Role addRulesItem(V1beta1PolicyRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBinding.java index 6524f15e0b..3627520468 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -159,7 +159,7 @@ public V1beta1RoleBinding subjects(List subjects) { public V1beta1RoleBinding addSubjectsItem(V1beta1Subject subjectsItem) { if (this.subjects == null) { - this.subjects = new ArrayList(); + this.subjects = new ArrayList<>(); } this.subjects.add(subjectsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBindingList.java index cab85e2b45..4a09cc4a9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -38,7 +38,7 @@ public class V1beta1RoleBindingList implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleList.java index 4707d7b1dd..462042dc38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "RoleList is a collection of Roles Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -38,7 +38,7 @@ public class V1beta1RoleList implements io.kubernetes.client.common.KubernetesLi public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleRef.java index 86eb1c51bf..216c2c0318 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RoleRef.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "RoleRef contains information that points to the role being used") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuleWithOperations.java index 403378c810..4698680503 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuleWithOperations.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -63,7 +63,7 @@ public V1beta1RuleWithOperations apiGroups(List apiGroups) { public V1beta1RuleWithOperations addApiGroupsItem(String apiGroupsItem) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList<>(); } this.apiGroups.add(apiGroupsItem); return this; @@ -95,7 +95,7 @@ public V1beta1RuleWithOperations apiVersions(List apiVersions) { public V1beta1RuleWithOperations addApiVersionsItem(String apiVersionsItem) { if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + this.apiVersions = new ArrayList<>(); } this.apiVersions.add(apiVersionsItem); return this; @@ -127,7 +127,7 @@ public V1beta1RuleWithOperations operations(List operations) { public V1beta1RuleWithOperations addOperationsItem(String operationsItem) { if (this.operations == null) { - this.operations = new ArrayList(); + this.operations = new ArrayList<>(); } this.operations.add(operationsItem); return this; @@ -160,7 +160,7 @@ public V1beta1RuleWithOperations resources(List resources) { public V1beta1RuleWithOperations addResourcesItem(String resourcesItem) { if (this.resources == null) { - this.resources = new ArrayList(); + this.resources = new ArrayList<>(); } this.resources.add(resourcesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptions.java index 31e0602763..2d84b9ae65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RunAsGroupStrategyOptions { public static final String SERIALIZED_NAME_RANGES = "ranges"; @@ -47,7 +47,7 @@ public V1beta1RunAsGroupStrategyOptions ranges(List ranges) { public V1beta1RunAsGroupStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { if (this.ranges == null) { - this.ranges = new ArrayList(); + this.ranges = new ArrayList<>(); } this.ranges.add(rangesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptions.java index 6aebb54e3d..3838f5ab80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RunAsUserStrategyOptions { public static final String SERIALIZED_NAME_RANGES = "ranges"; @@ -47,7 +47,7 @@ public V1beta1RunAsUserStrategyOptions ranges(List ranges) { public V1beta1RunAsUserStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { if (this.ranges == null) { - this.ranges = new ArrayList(); + this.ranges = new ArrayList<>(); } this.ranges.add(rangesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClass.java index f57cad70b8..5e0aca0b47 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassList.java index 9293e35350..cfcd696dc8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1RuntimeClassList implements io.kubernetes.client.common.Kube public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptions.java index 232585679d..2d40e35a3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,13 +28,13 @@ "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1RuntimeClassStrategyOptions { public static final String SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES = "allowedRuntimeClassNames"; @SerializedName(SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES) - private List allowedRuntimeClassNames = new ArrayList(); + private List allowedRuntimeClassNames = new ArrayList<>(); public static final String SERIALIZED_NAME_DEFAULT_RUNTIME_CLASS_NAME = "defaultRuntimeClassName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptions.java index a96dee8793..5575797865 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SELinuxStrategyOptions { public static final String SERIALIZED_NAME_RULE = "rule"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Scheduling.java index 79f40ca7fa..c1e4c5b50a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Scheduling.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Scheduling.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @@ -47,7 +47,7 @@ public V1beta1Scheduling nodeSelector(Map nodeSelector) { public V1beta1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem) { if (this.nodeSelector == null) { - this.nodeSelector = new HashMap(); + this.nodeSelector = new HashMap<>(); } this.nodeSelector.put(key, nodeSelectorItem); return this; @@ -81,7 +81,7 @@ public V1beta1Scheduling tolerations(List tolerations) { public V1beta1Scheduling addTolerationsItem(V1Toleration tolerationsItem) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + this.tolerations = new ArrayList<>(); } this.tolerations.add(tolerationsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReview.java index d046a4e021..1d0a095957 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReviewSpec.java index c5a9363e9f..06fa87371d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectAccessReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReview.java index d262cc97d2..bd6e3d9a84 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReviewSpec.java index 30e6491f5b..a7b58f48be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectRulesReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -19,7 +19,7 @@ /** V1beta1SelfSubjectRulesReviewSpec */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClass.java index 25ac7d4e89..bfc8082a30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClass.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; @@ -114,7 +114,7 @@ public V1beta1StorageClass allowedTopologies(List allowe public V1beta1StorageClass addAllowedTopologiesItem( V1TopologySelectorTerm allowedTopologiesItem) { if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); + this.allowedTopologies = new ArrayList<>(); } this.allowedTopologies.add(allowedTopologiesItem); return this; @@ -221,7 +221,7 @@ public V1beta1StorageClass mountOptions(List mountOptions) { public V1beta1StorageClass addMountOptionsItem(String mountOptionsItem) { if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); + this.mountOptions = new ArrayList<>(); } this.mountOptions.add(mountOptionsItem); return this; @@ -254,7 +254,7 @@ public V1beta1StorageClass parameters(Map parameters) { public V1beta1StorageClass putParametersItem(String key, String parametersItem) { if (this.parameters == null) { - this.parameters = new HashMap(); + this.parameters = new HashMap<>(); } this.parameters.put(key, parametersItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClassList.java index 920f08df55..b88b6e39cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "StorageClassList is a collection of storage classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V1beta1StorageClassList implements io.kubernetes.client.common.Kube public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java index 1de772e27d..0f0f09ddb6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReview.java index 426fb8c991..117175f223 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "SubjectAccessReview checks whether or not a user or group can perform an action.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewSpec.java index b04a27bc99..170f2eede6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @@ -70,7 +70,7 @@ public V1beta1SubjectAccessReviewSpec extra(Map> extra) { public V1beta1SubjectAccessReviewSpec putExtraItem(String key, List extraItem) { if (this.extra == null) { - this.extra = new HashMap>(); + this.extra = new HashMap<>(); } this.extra.put(key, extraItem); return this; @@ -102,7 +102,7 @@ public V1beta1SubjectAccessReviewSpec group(List group) { public V1beta1SubjectAccessReviewSpec addGroupItem(String groupItem) { if (this.group == null) { - this.group = new ArrayList(); + this.group = new ArrayList<>(); } this.group.add(groupItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewStatus.java index f743d8d96a..a8557ba20f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectAccessReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SubjectAccessReviewStatus") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectRulesReviewStatus.java index 37748b4c59..d179a6251b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectRulesReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @@ -45,12 +45,12 @@ public class V1beta1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) - private List nonResourceRules = new ArrayList(); + private List nonResourceRules = new ArrayList<>(); public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) - private List resourceRules = new ArrayList(); + private List resourceRules = new ArrayList<>(); public V1beta1SubjectRulesReviewStatus evaluationError(String evaluationError) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptions.java index ec9b70497b..a8db507dfd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptions.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1SupplementalGroupsStrategyOptions { public static final String SERIALIZED_NAME_RANGES = "ranges"; @@ -48,7 +48,7 @@ public V1beta1SupplementalGroupsStrategyOptions ranges(List rang public V1beta1SupplementalGroupsStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { if (this.ranges == null) { - this.ranges = new ArrayList(); + this.ranges = new ArrayList<>(); } this.ranges.add(rangesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReview.java index 0b19c1dbca..970d985d14 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReview.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewSpec.java index d0ac873d85..1124e0af11 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @@ -43,7 +43,7 @@ public V1beta1TokenReviewSpec audiences(List audiences) { public V1beta1TokenReviewSpec addAudiencesItem(String audiencesItem) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.add(audiencesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewStatus.java index 277c4e8e24..d0ca2bc69c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TokenReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @@ -53,7 +53,7 @@ public V1beta1TokenReviewStatus audiences(List audiences) { public V1beta1TokenReviewStatus addAudiencesItem(String audiencesItem) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList<>(); } this.audiences.add(audiencesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserInfo.java index 3d5e9e24ae..6acfb9caa2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserInfo.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "UserInfo holds the information about the user needed to implement the user.Info interface.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @@ -57,7 +57,7 @@ public V1beta1UserInfo extra(Map> extra) { public V1beta1UserInfo putExtraItem(String key, List extraItem) { if (this.extra == null) { - this.extra = new HashMap>(); + this.extra = new HashMap<>(); } this.extra.put(key, extraItem); return this; @@ -86,7 +86,7 @@ public V1beta1UserInfo groups(List groups) { public V1beta1UserInfo addGroupsItem(String groupsItem) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(groupsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhook.java index f85b3c7094..d7d625b227 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhook.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @@ -88,7 +88,7 @@ public V1beta1ValidatingWebhook admissionReviewVersions(List admissionRe public V1beta1ValidatingWebhook addAdmissionReviewVersionsItem( String admissionReviewVersionsItem) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + this.admissionReviewVersions = new ArrayList<>(); } this.admissionReviewVersions.add(admissionReviewVersionsItem); return this; @@ -270,7 +270,7 @@ public V1beta1ValidatingWebhook rules(List rules) { public V1beta1ValidatingWebhook addRulesItem(V1beta1RuleWithOperations rulesItem) { if (this.rules == null) { - this.rules = new ArrayList(); + this.rules = new ArrayList<>(); } this.rules.add(rulesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfiguration.java index 891cb35421..d108f0fd58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -134,7 +134,7 @@ public V1beta1ValidatingWebhookConfiguration webhooks(List(); + this.webhooks = new ArrayList<>(); } this.webhooks.add(webhooksItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfigurationList.java index 8d19aecf0a..8f21b84b98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingWebhookConfigurationList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,8 +35,7 @@ public class V1beta1ValidatingWebhookConfigurationList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachment.java index e1b4876253..9d82aad028 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachment.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentList.java index 896c6d9c3d..4a33e619fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,7 +34,7 @@ public class V1beta1VolumeAttachmentList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSource.java index c773389a63..0866650c02 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSpec.java index 92a4d64f62..9aeb713db6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentStatus.java index 15dd592af5..bbd9d38b9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttachmentStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @@ -99,7 +99,7 @@ public V1beta1VolumeAttachmentStatus attachmentMetadata(Map atta public V1beta1VolumeAttachmentStatus putAttachmentMetadataItem( String key, String attachmentMetadataItem) { if (this.attachmentMetadata == null) { - this.attachmentMetadata = new HashMap(); + this.attachmentMetadata = new HashMap<>(); } this.attachmentMetadata.put(key, attachmentMetadataItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeError.java index f0f0be1589..cb45ab4996 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeError.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,14 +15,14 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1VolumeError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -32,7 +32,7 @@ public class V1beta1VolumeError { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) - private DateTime time; + private OffsetDateTime time; public V1beta1VolumeError message(String message) { @@ -58,7 +58,7 @@ public void setMessage(String message) { this.message = message; } - public V1beta1VolumeError time(DateTime time) { + public V1beta1VolumeError time(OffsetDateTime time) { this.time = time; return this; @@ -71,11 +71,11 @@ public V1beta1VolumeError time(DateTime time) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Time the error was encountered.") - public DateTime getTime() { + public OffsetDateTime getTime() { return time; } - public void setTime(DateTime time) { + public void setTime(OffsetDateTime time) { this.time = time; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeNodeResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeNodeResources.java index c7fc8abede..bdcb776446 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeNodeResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeNodeResources.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V1beta1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJob.java index 0fd61e9a00..e614bbd03c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJob.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "CronJob represents the configuration of a single cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2alpha1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobList.java index 343734c53d..dd891df3e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CronJobList is a collection of cron jobs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2alpha1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -33,7 +33,7 @@ public class V2alpha1CronJobList implements io.kubernetes.client.common.Kubernet public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobSpec.java index 69622941a4..4c139b4523 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "CronJobSpec describes how the job execution will look like and when it will actually run.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2alpha1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobStatus.java index e34db7ad71..6ac01daea7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,16 +15,16 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2alpha1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @@ -34,7 +34,7 @@ public class V2alpha1CronJobStatus { public static final String SERIALIZED_NAME_LAST_SCHEDULE_TIME = "lastScheduleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCHEDULE_TIME) - private DateTime lastScheduleTime; + private OffsetDateTime lastScheduleTime; public V2alpha1CronJobStatus active(List active) { @@ -44,7 +44,7 @@ public V2alpha1CronJobStatus active(List active) { public V2alpha1CronJobStatus addActiveItem(V1ObjectReference activeItem) { if (this.active == null) { - this.active = new ArrayList(); + this.active = new ArrayList<>(); } this.active.add(activeItem); return this; @@ -65,7 +65,7 @@ public void setActive(List active) { this.active = active; } - public V2alpha1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { + public V2alpha1CronJobStatus lastScheduleTime(OffsetDateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; return this; @@ -79,11 +79,11 @@ public V2alpha1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { @javax.annotation.Nullable @ApiModelProperty( value = "Information when was the last time the job was successfully scheduled.") - public DateTime getLastScheduleTime() { + public OffsetDateTime getLastScheduleTime() { return lastScheduleTime; } - public void setLastScheduleTime(DateTime lastScheduleTime) { + public void setLastScheduleTime(OffsetDateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1JobTemplateSpec.java index b4011296e0..23b886dbab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2alpha1JobTemplateSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "JobTemplateSpec describes the data a Job should have when created from a template") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2alpha1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReference.java index 3ef5f1db56..c353e5ccdc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSource.java index b23c1a023b..728e8b7ddd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatus.java index d15d51eed4..b0559520b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscaler.java index 671e9e9a3b..42e5ac9964 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscaler.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerCondition.java index 3a143cbbc5..686982c507 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain @@ -27,12 +27,12 @@ "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -54,7 +54,8 @@ public class V2beta1HorizontalPodAutoscalerCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V2beta1HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastTransitionTime) { + public V2beta1HorizontalPodAutoscalerCondition lastTransitionTime( + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -69,11 +70,11 @@ public V2beta1HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastT @ApiModelProperty( value = "lastTransitionTime is the last time the condition transitioned from one status to another") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerList.java index df390027d1..e28427ac15 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ @ApiModel(description = "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -34,8 +34,7 @@ public class V2beta1HorizontalPodAutoscalerList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpec.java index 7dfae1542b..794c55bf05 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @@ -81,7 +81,7 @@ public V2beta1HorizontalPodAutoscalerSpec metrics(List metric public V2beta1HorizontalPodAutoscalerSpec addMetricsItem(V2beta1MetricSpec metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList(); + this.metrics = new ArrayList<>(); } this.metrics.add(metricsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatus.java index b0702fe722..5653a3b30f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,10 +15,10 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel( @@ -26,13 +26,12 @@ "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = - new ArrayList(); + private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CURRENT_METRICS = "currentMetrics"; @@ -52,7 +51,7 @@ public class V2beta1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) - private DateTime lastScaleTime; + private OffsetDateTime lastScaleTime; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @@ -100,7 +99,7 @@ public V2beta1HorizontalPodAutoscalerStatus currentMetrics( public V2beta1HorizontalPodAutoscalerStatus addCurrentMetricsItem( V2beta1MetricStatus currentMetricsItem) { if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + this.currentMetrics = new ArrayList<>(); } this.currentMetrics.add(currentMetricsItem); return this; @@ -170,7 +169,7 @@ public void setDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; } - public V2beta1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { + public V2beta1HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return this; @@ -186,11 +185,11 @@ public V2beta1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime @ApiModelProperty( value = "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.") - public DateTime getLastScaleTime() { + public OffsetDateTime getLastScaleTime() { return lastScaleTime; } - public void setLastScaleTime(DateTime lastScaleTime) { + public void setLastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpec.java index 33c2f7f67e..07f0dd4bcd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1MetricSpec { public static final String SERIALIZED_NAME_EXTERNAL = "external"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatus.java index 07f2704107..69364be3ed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1MetricStatus { public static final String SERIALIZED_NAME_EXTERNAL = "external"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSource.java index 1ef3be4e0a..5ac47e7df2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1ObjectMetricSource { public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatus.java index a9014feac7..af07a123e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1ObjectMetricStatus { public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSource.java index 2e83ad5b00..d81e83dac3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1PodsMetricSource { public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatus.java index de13530b18..8c4d67e3a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSource.java index ff2e7f59ac..a3f5636764 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatus.java index 97c1869a0a..fce2faa9b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -29,7 +29,7 @@ "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta1ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT_AVERAGE_UTILIZATION = "currentAverageUtilization"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java index 06f4a3e69c..17aa769549 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java index fa711ff678..65630e9186 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java index 553a78e8b3..e7027f53e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java index 8e4327ea7e..ad5e755fbf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java index a0ceae0fe2..8841e2b456 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -31,7 +31,7 @@ "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; @@ -57,7 +57,7 @@ public V2beta2HPAScalingRules policies(List policies) { public V2beta2HPAScalingRules addPoliciesItem(V2beta2HPAScalingPolicy policiesItem) { if (this.policies == null) { - this.policies = new ArrayList(); + this.policies = new ArrayList<>(); } this.policies.add(policiesItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java index bab7425153..81dfe2e3aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java index 41ebc2c120..f35171de9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java index eaecdd1eeb..630ffe1271 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,8 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.Objects; -import org.joda.time.DateTime; /** * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain @@ -27,12 +27,12 @@ "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private DateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -54,7 +54,8 @@ public class V2beta2HorizontalPodAutoscalerCondition { @SerializedName(SERIALIZED_NAME_TYPE) private String type; - public V2beta2HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastTransitionTime) { + public V2beta2HorizontalPodAutoscalerCondition lastTransitionTime( + OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return this; @@ -69,11 +70,11 @@ public V2beta2HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastT @ApiModelProperty( value = "lastTransitionTime is the last time the condition transitioned from one status to another") - public DateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } - public void setLastTransitionTime(DateTime lastTransitionTime) { + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java index af297730eb..3167af1c9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -24,7 +24,7 @@ description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -35,8 +35,7 @@ public class V2beta2HorizontalPodAutoscalerList public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = - new ArrayList(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java index 95d06e11ac..6970b5f915 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; @@ -108,7 +108,7 @@ public V2beta2HorizontalPodAutoscalerSpec metrics(List metric public V2beta2HorizontalPodAutoscalerSpec addMetricsItem(V2beta2MetricSpec metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList(); + this.metrics = new ArrayList<>(); } this.metrics.add(metricsItem); return this; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java index cf84d0db87..ce3610595d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -15,10 +15,10 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.joda.time.DateTime; /** HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel( @@ -26,13 +26,12 @@ "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = - new ArrayList(); + private List conditions = new ArrayList<>(); public static final String SERIALIZED_NAME_CURRENT_METRICS = "currentMetrics"; @@ -52,7 +51,7 @@ public class V2beta2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) - private DateTime lastScaleTime; + private OffsetDateTime lastScaleTime; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @@ -100,7 +99,7 @@ public V2beta2HorizontalPodAutoscalerStatus currentMetrics( public V2beta2HorizontalPodAutoscalerStatus addCurrentMetricsItem( V2beta2MetricStatus currentMetricsItem) { if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + this.currentMetrics = new ArrayList<>(); } this.currentMetrics.add(currentMetricsItem); return this; @@ -170,7 +169,7 @@ public void setDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; } - public V2beta2HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { + public V2beta2HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return this; @@ -186,11 +185,11 @@ public V2beta2HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime @ApiModelProperty( value = "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.") - public DateTime getLastScaleTime() { + public OffsetDateTime getLastScaleTime() { return lastScaleTime; } - public void setLastScaleTime(DateTime lastScaleTime) { + public void setLastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java index 4faefd4263..2f0b016421 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java index a6cf6d2fb9..d96a501e6b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2MetricSpec { public static final String SERIALIZED_NAME_EXTERNAL = "external"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java index 0a186460d8..cfeb79fb19 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -21,7 +21,7 @@ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2MetricStatus { public static final String SERIALIZED_NAME_EXTERNAL = "external"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java index 86f7825dad..d619e119c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "MetricTarget defines the target value, average value, or average utilization of a specific metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java index 2c066d35d2..0793f1a194 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -22,7 +22,7 @@ @ApiModel(description = "MetricValueStatus holds the current value for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java index 158f6d7ee6..f2beb73c5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java index ee9827b0e2..b80ac38c36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java index 7e4b19d6b4..eae89cbe89 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -27,7 +27,7 @@ "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java index d2bc741c77..09250f1628 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -26,7 +26,7 @@ "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java index e09b56b771..0a105dad52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -30,7 +30,7 @@ "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java index c83b5c3403..4c9789f59d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -28,7 +28,7 @@ "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class V2beta2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java index d59474814c..42b0148ec9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 The Kubernetes Authors. 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 @@ -23,7 +23,7 @@ "Info contains versioning information. how we'll want to distribute that information.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2020-11-06T08:58:17.566Z[Etc/UTC]") + date = "2021-01-04T08:47:01.853Z[Etc/UTC]") public class VersionInfo { public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; diff --git a/pom.xml b/pom.xml index 08ed8a073b..bcb95b4a30 100644 --- a/pom.xml +++ b/pom.xml @@ -47,8 +47,6 @@ 4.13 6.0.0 1.68 - 2.10.9 - 2.2.1 2.8.6 3.0.2 3.14.9 @@ -193,16 +191,6 @@ ${prometheus.client.version} true - - joda-time - joda-time - ${jodatime.version} - - - org.joda - joda-convert - ${joda-convert.version} - com.google.code.gson gson diff --git a/util/src/main/java/io/kubernetes/client/informer/cache/ProcessorListener.java b/util/src/main/java/io/kubernetes/client/informer/cache/ProcessorListener.java index 4b72107aa4..c2dbc303f4 100644 --- a/util/src/main/java/io/kubernetes/client/informer/cache/ProcessorListener.java +++ b/util/src/main/java/io/kubernetes/client/informer/cache/ProcessorListener.java @@ -15,9 +15,10 @@ import io.kubernetes.client.common.KubernetesObject; import io.kubernetes.client.informer.ResourceEventHandler; import io.kubernetes.client.informer.exception.BadNotificationException; +import java.time.Duration; +import java.time.OffsetDateTime; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; -import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -35,7 +36,7 @@ public class ProcessorListener implements Runn // the // informer's overall resync check period. private long resyncPeriod; - private DateTime nextResync; + private OffsetDateTime nextResync; private BlockingQueue queue; @@ -47,7 +48,7 @@ public ProcessorListener(ResourceEventHandler handler, long resyncPerio this.queue = new LinkedBlockingQueue<>(); - determineNextResync(DateTime.now()); + determineNextResync(OffsetDateTime.now()); } @Override @@ -105,11 +106,11 @@ public void add(Notification obj) { this.queue.add(obj); } - public void determineNextResync(DateTime now) { - this.nextResync = now.plus(this.resyncPeriod); + public void determineNextResync(OffsetDateTime now) { + this.nextResync = now.plus(Duration.ofMillis(this.resyncPeriod)); } - public boolean shouldResync(DateTime now) { + public boolean shouldResync(OffsetDateTime now) { return this.resyncPeriod != 0 && (now.isAfter(this.nextResync) || now.equals(this.nextResync)); } diff --git a/util/src/main/java/io/kubernetes/client/informer/cache/SharedProcessor.java b/util/src/main/java/io/kubernetes/client/informer/cache/SharedProcessor.java index e28b73d933..f854683d55 100644 --- a/util/src/main/java/io/kubernetes/client/informer/cache/SharedProcessor.java +++ b/util/src/main/java/io/kubernetes/client/informer/cache/SharedProcessor.java @@ -14,6 +14,7 @@ import io.kubernetes.client.common.KubernetesObject; import java.time.Duration; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; @@ -22,7 +23,6 @@ import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import org.apache.commons.collections4.CollectionUtils; -import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -138,7 +138,7 @@ public boolean shouldResync() { try { this.syncingListeners = new ArrayList<>(this.listeners.size()); - DateTime now = DateTime.now(); + OffsetDateTime now = OffsetDateTime.now(); for (ProcessorListener listener : this.listeners) { if (listener.shouldResync(now)) { resyncNeeded = true; diff --git a/util/src/main/java/io/kubernetes/client/util/CSRUtils.java b/util/src/main/java/io/kubernetes/client/util/CSRUtils.java index 88538acbc8..d2201153be 100644 --- a/util/src/main/java/io/kubernetes/client/util/CSRUtils.java +++ b/util/src/main/java/io/kubernetes/client/util/CSRUtils.java @@ -27,6 +27,7 @@ import java.io.PrintStream; import java.security.KeyPair; import java.time.Duration; +import java.time.OffsetDateTime; import java.util.Base64; import java.util.Objects; import java.util.Optional; @@ -40,7 +41,6 @@ import org.bouncycastle.pkcs.PKCS10CertificationRequest; import org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder; import org.bouncycastle.pkcs.jcajce.JcaPKCS10CertificationRequestBuilder; -import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -62,7 +62,7 @@ public class CSRUtils { */ public static void approve(ApiClient apiClient, String csrObjName) throws ApiException { CertificatesV1Api api = new CertificatesV1Api(apiClient); - DateTime now = DateTime.now(); + OffsetDateTime now = OffsetDateTime.now(); V1CertificateSigningRequest current = api.readCertificateSigningRequest(csrObjName, null, null, null); current diff --git a/util/src/main/java/io/kubernetes/client/util/Yaml.java b/util/src/main/java/io/kubernetes/client/util/Yaml.java index dc4654dd16..fd143febaa 100644 --- a/util/src/main/java/io/kubernetes/client/util/Yaml.java +++ b/util/src/main/java/io/kubernetes/client/util/Yaml.java @@ -21,6 +21,7 @@ import java.io.Reader; import java.io.StringReader; import java.io.Writer; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -29,8 +30,6 @@ import java.util.Map; import java.util.Set; import okio.ByteString; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.yaml.snakeyaml.DumperOptions; @@ -227,7 +226,7 @@ protected Object constructObject(Node node) { return constructByteArray((ScalarNode) node); } - if (node.getType() == org.joda.time.DateTime.class) { + if (node.getType() == OffsetDateTime.class) { return constructDateTime((ScalarNode) node); } @@ -250,7 +249,7 @@ private Object constructDateTime(ScalarNode node) { if (node.getValue() == null || "null".equalsIgnoreCase(node.getValue())) { return null; } else { - return new DateTime(node.getValue(), DateTimeZone.UTC); + return OffsetDateTime.parse(node.getValue()); } } } @@ -261,7 +260,7 @@ public CustomRepresenter() { this.representers.put(IntOrString.class, new RepresentIntOrString()); this.representers.put(byte[].class, new RepresentByteArray()); this.representers.put(Quantity.class, new RepresentQuantity()); - this.representers.put(DateTime.class, new RepresentDateTime()); + this.representers.put(OffsetDateTime.class, new RepresentDateTime()); } private class RepresentDateTime implements Represent { diff --git a/util/src/test/java/io/kubernetes/client/util/YamlTest.java b/util/src/test/java/io/kubernetes/client/util/YamlTest.java index 1d87f35d16..e43ddc9e7d 100644 --- a/util/src/test/java/io/kubernetes/client/util/YamlTest.java +++ b/util/src/test/java/io/kubernetes/client/util/YamlTest.java @@ -234,7 +234,7 @@ public void testDateTime() { assertEquals( "Incorrect value loaded for creationTimestamp", - "2018-09-06T15:12:24.000Z", + "2018-09-06T15:12:24Z", new String(pod.getMetadata().getCreationTimestamp().toString().getBytes(), UTF_8)); } catch (Exception ex) {