diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index 4916ab4695..e224e5c989 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -b41435edfacf2f648f065211836417b7ac128554c81938a2f41fa23f326b7cd3 \ No newline at end of file +55bb6dc96902e8bb64d4518816cf258124f7232ddcfac6d7e4c023b6c95f0788 \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 8b811b3007..816fe9455a 100644 --- a/kubernetes/api/openapi.yaml +++ b/kubernetes/api/openapi.yaml @@ -72586,7 +72586,7 @@ paths: - custom_objects x-accepts: - application/json - /apis/{group}/{version}/{plural}#‎: + /apis/{group}/{version}/{resource_plural}: get: description: list or watch namespace scoped custom objects operationId: listCustomObjectForAllNamespaces @@ -72611,7 +72611,7 @@ paths: - description: The custom resource's plural name. For TPRs this would be lowercase plural kind. in: path - name: plural + name: resource_plural required: true schema: type: string @@ -73067,6 +73067,12 @@ paths: name: dryRun schema: type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string requestBody: content: application/json: diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index 62a1182a0f..1c20a6f42b 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -18,7 +18,7 @@ All URIs are relative to *http://localhost* | [**getNamespacedCustomObjectScale**](CustomObjectsApi.md#getNamespacedCustomObjectScale) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | | | [**getNamespacedCustomObjectStatus**](CustomObjectsApi.md#getNamespacedCustomObjectStatus) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | | | [**listClusterCustomObject**](CustomObjectsApi.md#listClusterCustomObject) | **GET** /apis/{group}/{version}/{plural} | | -| [**listCustomObjectForAllNamespaces**](CustomObjectsApi.md#listCustomObjectForAllNamespaces) | **GET** /apis/{group}/{version}/{plural}#‎ | | +| [**listCustomObjectForAllNamespaces**](CustomObjectsApi.md#listCustomObjectForAllNamespaces) | **GET** /apis/{group}/{version}/{resource_plural} | | | [**listNamespacedCustomObject**](CustomObjectsApi.md#listNamespacedCustomObject) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural} | | | [**patchClusterCustomObject**](CustomObjectsApi.md#patchClusterCustomObject) | **PATCH** /apis/{group}/{version}/{plural}/{name} | | | [**patchClusterCustomObjectScale**](CustomObjectsApi.md#patchClusterCustomObjectScale) | **PATCH** /apis/{group}/{version}/{plural}/{name}/scale | | @@ -404,7 +404,7 @@ public class Example { # **deleteCollectionNamespacedCustomObject** -> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural).pretty(pretty).labelSelector(labelSelector).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).dryRun(dryRun).body(body).execute(); +> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural).pretty(pretty).labelSelector(labelSelector).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).dryRun(dryRun).fieldSelector(fieldSelector).body(body).execute(); @@ -442,6 +442,7 @@ public class Example { Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { Object result = apiInstance.deleteCollectionNamespacedCustomObject(group, version, namespace, plural) @@ -451,6 +452,7 @@ public class Example { .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .dryRun(dryRun) + .fieldSelector(fieldSelector) .body(body) .execute(); System.out.println(result); @@ -479,6 +481,7 @@ public class Example { | **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | | **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1242,7 +1245,7 @@ public class Example { # **listCustomObjectForAllNamespaces** -> Object listCustomObjectForAllNamespaces(group, version, plural).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> Object listCustomObjectForAllNamespaces(group, version, resourcePlural).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1272,7 +1275,7 @@ public class Example { CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); String group = "group_example"; // String | The custom resource's group name String version = "version_example"; // String | The custom resource's version - String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. + String resourcePlural = "resourcePlural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -1284,7 +1287,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. try { - Object result = apiInstance.listCustomObjectForAllNamespaces(group, version, plural) + Object result = apiInstance.listCustomObjectForAllNamespaces(group, version, resourcePlural) .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -1314,7 +1317,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **group** | **String**| The custom resource's group name | | | **version** | **String**| The custom resource's version | | -| **plural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | +| **resourcePlural** | **String**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | | | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] | | **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | [optional] | | **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | 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 6dac807a7c..4ee3eea705 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 a18ccfe6d4..28a8a5e2b5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -140,7 +140,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("Kubernetes Java Client/21.0.0-SNAPSHOT"); + setUserAgent("Kubernetes Java Client/22.0.1-SNAPSHOT"); authentications = new HashMap(); } 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 949fb45e95..056c35d8df 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,7 +20,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; 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 3228aa6911..1b03e38975 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 f299b1a08f..0194bbf387 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -12,9 +12,9 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class Configuration { - public static final String VERSION = "21.0.0-SNAPSHOT"; + public static final String VERSION = "22.0.1-SNAPSHOT"; 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 7b0cf738c6..ec4cfbb653 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/JSON.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java index d7d2d55794..dda3ec708c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,9 +23,6 @@ import io.gsonfire.GsonFireBuilder; import io.gsonfire.TypeSelector; -import io.kubernetes.client.gson.V1MetadataExclusionStrategy; -import io.kubernetes.client.gson.V1StatusPreProcessor; -import io.kubernetes.client.openapi.models.V1Status; import okio.ByteString; import java.io.IOException; @@ -38,9 +35,6 @@ import java.time.ZoneId; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; -import java.time.format.DateTimeFormatterBuilder; -import java.time.format.DateTimeParseException; -import java.time.temporal.ChronoField; import java.util.Date; import java.util.Locale; import java.util.Map; @@ -56,20 +50,9 @@ public class JSON { private static Gson gson; private static boolean isLenientOnJson = false; - - private static final DateTimeFormatter RFC3339MICRO_FORMATTER = - new DateTimeFormatterBuilder() - .parseDefaulting(ChronoField.OFFSET_SECONDS, 0) - .append(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")) - .optionalStart() - .appendFraction(ChronoField.NANO_OF_SECOND, 6, 6, true) - .optionalEnd() - .appendLiteral("Z") - .toFormatter(); - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(RFC3339MICRO_FORMATTER); + private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); @@ -82,11 +65,8 @@ public class JSON { public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder() ; - GsonBuilder builder = - fireBuilder - .registerPreProcessor(V1Status.class, new V1StatusPreProcessor()) - .createGsonBuilder(); - return builder.setExclusionStrategies(new V1MetadataExclusionStrategy()); + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; } private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { @@ -813,14 +793,11 @@ public static class ByteArrayAdapter extends TypeAdapter { @Override public void write(JsonWriter out, byte[] value) throws IOException { - boolean oldHtmlSafe = out.isHtmlSafe(); - out.setHtmlSafe(false); if (value == null) { out.nullValue(); } else { out.value(ByteString.of(value).base64()); } - out.setHtmlSafe(oldHtmlSafe); } @Override @@ -876,12 +853,7 @@ public OffsetDateTime read(JsonReader in) throws IOException { if (date.endsWith("+0000")) { date = date.substring(0, date.length()-5) + "Z"; } - try { - return OffsetDateTime.parse(date, formatter); - } catch (DateTimeParseException e) { - // backward-compatibility for ISO8601 timestamp format - return OffsetDateTime.parse(date, DateTimeFormatter.ISO_OFFSET_DATE_TIME); - } + return OffsetDateTime.parse(date, formatter); } } } 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 9d0468b3af..1328dc552d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -12,7 +12,7 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") 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 e042f2088d..9f03aa6f25 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 c239f01743..ae03d657b5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 9b8aa57f1f..c041ad371c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class ServerConfiguration { public String URL; public String description; 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 b641aa57b4..e6857c296a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class ServerVariable { public String description; public String defaultValue; 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 8633242ff2..4ece441c4c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,7 +15,7 @@ import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") 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 59cdbb0f7a..b653787870 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 02d11b6810..d20ff16ff0 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/AdmissionregistrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java index ec7b5d8c02..f350907a79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 7896f4823b..7f3a7e5955 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 951e53394e..7544849e1c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 992bbb0928..69670f9514 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 832fc258bb..f8a512b3bf 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 00102cc259..22ff8404e1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 1362148023..a2c3661bbf 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 76609a3477..a64df6e023 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 0eb9868d26..7bdc9c8917 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 9c79b0ad5e..1aeadc1a65 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 9d533f9464..0e01b54166 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/AuthenticationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java index 1be19de38a..d2376f27b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 504bfee37c..3e8ffee7f2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 1b465b2b48..3469f82c3f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 8ed96109c5..9dc4dbf82c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 fa11861915..d2d6089798 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 53d6cb6080..dfd4ea69ff 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/AutoscalingV2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java index 9ab942f1f5..493432bf46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 714eb18ca7..d5d6ca22b9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 50a09b0fae..320a22e4e6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 acd53a9d2f..9fb184c95f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 b7551ce22d..b5a6cb97dd 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/CertificatesV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java index 4a8bf32313..5f1afb0445 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 a83c8c5015..38fcdea192 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 b698879c07..1b084e790c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/CoordinationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha1Api.java index f426ab6703..47ad762568 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 578b022566..e47097b9d3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 9bfde77194..48abfc3d62 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 02953015ac..536844904a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -1102,7 +1102,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api public APIdeleteCollectionClusterCustomObjectRequest deleteCollectionClusterCustomObject(String group, String version, String plural) { return new APIdeleteCollectionClusterCustomObjectRequest(group, version, plural); } - private okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1155,6 +1155,10 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, St localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1176,7 +1180,7 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectCall(String group, St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling deleteCollectionNamespacedCustomObject(Async)"); @@ -1197,20 +1201,20 @@ private okhttp3.Call deleteCollectionNamespacedCustomObjectValidateBeforeCall(St throw new ApiException("Missing the required parameter 'plural' when calling deleteCollectionNamespacedCustomObject(Async)"); } - return deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); + return deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _callback); } - private ApiResponse deleteCollectionNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, null); + private ApiResponse deleteCollectionNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String pretty, String labelSelector, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, String dryRun, String fieldSelector, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1227,6 +1231,7 @@ public class APIdeleteCollectionNamespacedCustomObjectRequest { private Boolean orphanDependents; private String propagationPolicy; private String dryRun; + private String fieldSelector; private V1DeleteOptions body; private APIdeleteCollectionNamespacedCustomObjectRequest(String group, String version, String namespace, String plural) { @@ -1296,6 +1301,16 @@ public APIdeleteCollectionNamespacedCustomObjectRequest dryRun(String dryRun) { return this; } + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedCustomObjectRequest + */ + public APIdeleteCollectionNamespacedCustomObjectRequest fieldSelector(String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + /** * Set body * @param body (optional) @@ -1319,7 +1334,7 @@ public APIdeleteCollectionNamespacedCustomObjectRequest body(V1DeleteOptions bod */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); + return deleteCollectionNamespacedCustomObjectCall(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _callback); } /** @@ -1334,7 +1349,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public Object execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); + ApiResponse localVarResp = deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body); return localVarResp.getData(); } @@ -1350,7 +1365,7 @@ public Object execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body); + return deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body); } /** @@ -1366,7 +1381,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedCustomObjectAsync(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _callback); + return deleteCollectionNamespacedCustomObjectAsync(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _callback); } } @@ -3284,7 +3299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api public APIlistClusterCustomObjectRequest listClusterCustomObject(String group, String version, String plural) { return new APIlistClusterCustomObjectRequest(group, version, plural); } - private okhttp3.Call listCustomObjectForAllNamespacesCall(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomObjectForAllNamespacesCall(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3301,10 +3316,10 @@ private okhttp3.Call listCustomObjectForAllNamespacesCall(String group, String v Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/{group}/{version}/{plural}#‎" + String localVarPath = "/apis/{group}/{version}/{resource_plural}" .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())) .replace("{" + "version" + "}", localVarApiClient.escapeString(version.toString())) - .replace("{" + "plural" + "}", localVarApiClient.escapeString(plural.toString())); + .replace("{" + "resource_plural" + "}", localVarApiClient.escapeString(resourcePlural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3373,7 +3388,7 @@ private okhttp3.Call listCustomObjectForAllNamespacesCall(String group, String v } @SuppressWarnings("rawtypes") - private okhttp3.Call listCustomObjectForAllNamespacesValidateBeforeCall(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomObjectForAllNamespacesValidateBeforeCall(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { throw new ApiException("Missing the required parameter 'group' when calling listCustomObjectForAllNamespaces(Async)"); @@ -3384,25 +3399,25 @@ private okhttp3.Call listCustomObjectForAllNamespacesValidateBeforeCall(String g throw new ApiException("Missing the required parameter 'version' when calling listCustomObjectForAllNamespaces(Async)"); } - // verify the required parameter 'plural' is set - if (plural == null) { - throw new ApiException("Missing the required parameter 'plural' when calling listCustomObjectForAllNamespaces(Async)"); + // verify the required parameter 'resourcePlural' is set + if (resourcePlural == null) { + throw new ApiException("Missing the required parameter 'resourcePlural' when calling listCustomObjectForAllNamespaces(Async)"); } - return listCustomObjectForAllNamespacesCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); + return listCustomObjectForAllNamespacesCall(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); } - private ApiResponse listCustomObjectForAllNamespacesWithHttpInfo(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCustomObjectForAllNamespacesValidateBeforeCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); + private ApiResponse listCustomObjectForAllNamespacesWithHttpInfo(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCustomObjectForAllNamespacesValidateBeforeCall(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCustomObjectForAllNamespacesAsync(String group, String version, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomObjectForAllNamespacesAsync(String group, String version, String resourcePlural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCustomObjectForAllNamespacesValidateBeforeCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listCustomObjectForAllNamespacesValidateBeforeCall(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3411,7 +3426,7 @@ private okhttp3.Call listCustomObjectForAllNamespacesAsync(String group, String public class APIlistCustomObjectForAllNamespacesRequest { private final String group; private final String version; - private final String plural; + private final String resourcePlural; private String pretty; private Boolean allowWatchBookmarks; private String _continue; @@ -3423,10 +3438,10 @@ public class APIlistCustomObjectForAllNamespacesRequest { private Integer timeoutSeconds; private Boolean watch; - private APIlistCustomObjectForAllNamespacesRequest(String group, String version, String plural) { + private APIlistCustomObjectForAllNamespacesRequest(String group, String version, String resourcePlural) { this.group = group; this.version = version; - this.plural = plural; + this.resourcePlural = resourcePlural; } /** @@ -3542,7 +3557,7 @@ public APIlistCustomObjectForAllNamespacesRequest watch(Boolean watch) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCustomObjectForAllNamespacesCall(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); + return listCustomObjectForAllNamespacesCall(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); } /** @@ -3557,7 +3572,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public Object execute() throws ApiException { - ApiResponse localVarResp = listCustomObjectForAllNamespacesWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); + ApiResponse localVarResp = listCustomObjectForAllNamespacesWithHttpInfo(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); return localVarResp.getData(); } @@ -3573,7 +3588,7 @@ public Object execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCustomObjectForAllNamespacesWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); + return listCustomObjectForAllNamespacesWithHttpInfo(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); } /** @@ -3589,7 +3604,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCustomObjectForAllNamespacesAsync(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); + return listCustomObjectForAllNamespacesAsync(group, version, resourcePlural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _callback); } } @@ -3598,7 +3613,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api * list or watch namespace scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) - * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) + * @param resourcePlural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @return APIlistCustomObjectForAllNamespacesRequest * @http.response.details @@ -3607,8 +3622,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api
401 Unauthorized -
*/ - public APIlistCustomObjectForAllNamespacesRequest listCustomObjectForAllNamespaces(String group, String version, String plural) { - return new APIlistCustomObjectForAllNamespacesRequest(group, version, plural); + public APIlistCustomObjectForAllNamespacesRequest listCustomObjectForAllNamespaces(String group, String version, String resourcePlural) { + return new APIlistCustomObjectForAllNamespacesRequest(group, version, resourcePlural); } private okhttp3.Call listNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; 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 b22c024741..5e9803ba3e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/DiscoveryV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java index 4a9cdd8eb7..140831f9fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 e9a0bd40d6..4f08c6f50d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 73aac41f3e..58d383b7d8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 f5d43d4658..c03971cdc9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/FlowcontrolApiserverV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java index 96995d400b..457c0117fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/FlowcontrolApiserverV1beta3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java index 38660916b7..99b39d5f8a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/InternalApiserverApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java index b49d133ddf..7acfa572e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/InternalApiserverV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java index d817a3bd78..5fd6b9751b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 dbf44dffdf..9b88b10cef 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 2aaf9dd0bd..64be8c7e3a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 6f8d567780..16e473dc22 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 901d1e4d0a..ca997c4013 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 92b58f6975..56da74f3ec 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/NodeV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java index 97b380973c..cb889fe5c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/OpenidApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java index d04b085579..b98bc5eb70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 6b09af4cbf..1419a54bc7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/PolicyV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java index b95d365c64..d9ceb9d0c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 99a39fafc4..e8382a5304 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 989991cd5f..bf242b7437 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/ResourceApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java index 2812c7afdb..6e85c5d6b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/ResourceV1alpha3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java index 311727860f..d88a797849 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 2a3519df6c..bb9b324a12 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 a83565723c..c08d0d0072 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 5da3efe305..6e3f91c73c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 eb916ec499..c1e5335469 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 989a18ea47..9d0792b285 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 3323a60d94..bc7379a75f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/StoragemigrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java index c6faf4d3ba..835a5ccb32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/StoragemigrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java index 7d3be0f4ce..1248bf3ad0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 3bffd415fc..74d8ebc2df 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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/WellKnownApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java index d3f263f54b..2eabf80d7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 50d25188fd..2af6455848 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") 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 44cf01b8b7..c9b4761e65 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 88e8a6258e..b7e2772521 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 f0a7e661da..aa24e36d34 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 @@ import java.util.Optional; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java index 1f960d40cd..c2aa343d99 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,7 +20,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object 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 6ce5e7f4d8..b84dba428a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ServiceReference holds a reference to Service.legacy.k8s.io */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -79,6 +82,7 @@ public AdmissionregistrationV1ServiceReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`name` is the name of the service. Required") public String getName() { return name; } @@ -98,6 +102,7 @@ public AdmissionregistrationV1ServiceReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`namespace` is the namespace of the service. Required") public String getNamespace() { return namespace; } @@ -117,6 +122,7 @@ public AdmissionregistrationV1ServiceReference path(String path) { * @return path **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`path` is an optional URL path which will be sent in any request to this service.") public String getPath() { return path; } @@ -136,6 +142,7 @@ public AdmissionregistrationV1ServiceReference port(Integer port) { * @return port **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") public Integer getPort() { return port; } 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 55c75944f0..2ffb39af19 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * WebhookClientConfig contains the information to make a TLS connection with the webhook */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -76,6 +79,7 @@ public AdmissionregistrationV1WebhookClientConfig caBundle(byte[] caBundle) { * @return caBundle **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") public byte[] getCaBundle() { return caBundle; } @@ -95,6 +99,7 @@ public AdmissionregistrationV1WebhookClientConfig service(AdmissionregistrationV * @return service **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public AdmissionregistrationV1ServiceReference getService() { return service; } @@ -114,6 +119,7 @@ public AdmissionregistrationV1WebhookClientConfig url(String url) { * @return url **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") public String getUrl() { return url; } 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 6c86fc2cdd..0ef1c70ee8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ServiceReference holds a reference to Service.legacy.k8s.io */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -79,6 +82,7 @@ public ApiextensionsV1ServiceReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the service. Required") public String getName() { return name; } @@ -98,6 +102,7 @@ public ApiextensionsV1ServiceReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "namespace is the namespace of the service. Required") public String getNamespace() { return namespace; } @@ -117,6 +122,7 @@ public ApiextensionsV1ServiceReference path(String path) { * @return path **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "path is an optional URL path at which the webhook will be contacted.") public String getPath() { return path; } @@ -136,6 +142,7 @@ public ApiextensionsV1ServiceReference port(Integer port) { * @return port **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.") public Integer getPort() { return port; } 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 351050ba2f..a1ad393e5e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * WebhookClientConfig contains the information to make a TLS connection with the webhook. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -76,6 +79,7 @@ public ApiextensionsV1WebhookClientConfig caBundle(byte[] caBundle) { * @return caBundle **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") public byte[] getCaBundle() { return caBundle; } @@ -95,6 +99,7 @@ public ApiextensionsV1WebhookClientConfig service(ApiextensionsV1ServiceReferenc * @return service **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public ApiextensionsV1ServiceReference getService() { return service; } @@ -114,6 +119,7 @@ public ApiextensionsV1WebhookClientConfig url(String url) { * @return url **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") public String getUrl() { return url; } 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 acea494f26..f988ac0857 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ServiceReference holds a reference to Service.legacy.k8s.io */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -75,6 +78,7 @@ public ApiregistrationV1ServiceReference name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name is the name of the service") public String getName() { return name; } @@ -94,6 +98,7 @@ public ApiregistrationV1ServiceReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace is the namespace of the service") public String getNamespace() { return namespace; } @@ -113,6 +118,7 @@ public ApiregistrationV1ServiceReference port(Integer port) { * @return port **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") public Integer getPort() { return port; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java index 4356bf0800..ab575048d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1TokenRequestSpec; import io.kubernetes.client.openapi.models.V1TokenRequestStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * TokenRequest requests a token for a given service account. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TokenRequest requests a token for a given service account.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public AuthenticationV1TokenRequest apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public AuthenticationV1TokenRequest kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public AuthenticationV1TokenRequest metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public AuthenticationV1TokenRequest spec(V1TokenRequestSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1TokenRequestSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public AuthenticationV1TokenRequest status(V1TokenRequestStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TokenRequestStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java index a6f59b797f..23cfd061ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * EndpointPort is a tuple that describes a single port. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointPort is a tuple that describes a single port.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -79,6 +82,7 @@ public CoreV1EndpointPort appProtocol(String appProtocol) { * @return appProtocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.") public String getAppProtocol() { return appProtocol; } @@ -98,6 +102,7 @@ public CoreV1EndpointPort name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.") public String getName() { return name; } @@ -117,6 +122,7 @@ public CoreV1EndpointPort port(Integer port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The port number of the endpoint.") public Integer getPort() { return port; } @@ -136,6 +142,7 @@ public CoreV1EndpointPort protocol(String protocol) { * @return protocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") public String getProtocol() { return protocol; } 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 bea9d7f2f1..839c8a1669 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1EventSource; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -136,6 +139,7 @@ public CoreV1Event action(String action) { * @return action **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "What action was taken/failed regarding to the Regarding object.") public String getAction() { return action; } @@ -155,6 +159,7 @@ public CoreV1Event apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -174,6 +179,7 @@ public CoreV1Event count(Integer count) { * @return count **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of times this event has occurred.") public Integer getCount() { return count; } @@ -193,6 +199,7 @@ public CoreV1Event eventTime(OffsetDateTime eventTime) { * @return eventTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Time when this Event was first observed.") public OffsetDateTime getEventTime() { return eventTime; } @@ -212,6 +219,7 @@ public CoreV1Event firstTimestamp(OffsetDateTime firstTimestamp) { * @return firstTimestamp **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)") public OffsetDateTime getFirstTimestamp() { return firstTimestamp; } @@ -231,6 +239,7 @@ public CoreV1Event involvedObject(V1ObjectReference involvedObject) { * @return involvedObject **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1ObjectReference getInvolvedObject() { return involvedObject; } @@ -250,6 +259,7 @@ public CoreV1Event kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -269,6 +279,7 @@ public CoreV1Event lastTimestamp(OffsetDateTime lastTimestamp) { * @return lastTimestamp **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The time at which the most recent occurrence of this event was recorded.") public OffsetDateTime getLastTimestamp() { return lastTimestamp; } @@ -288,6 +299,7 @@ public CoreV1Event message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human-readable description of the status of this operation.") public String getMessage() { return message; } @@ -307,6 +319,7 @@ public CoreV1Event metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -326,6 +339,7 @@ public CoreV1Event reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.") public String getReason() { return reason; } @@ -345,6 +359,7 @@ public CoreV1Event related(V1ObjectReference related) { * @return related **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectReference getRelated() { return related; } @@ -364,6 +379,7 @@ public CoreV1Event reportingComponent(String reportingComponent) { * @return reportingComponent **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.") public String getReportingComponent() { return reportingComponent; } @@ -383,6 +399,7 @@ public CoreV1Event reportingInstance(String reportingInstance) { * @return reportingInstance **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ID of the controller instance, e.g. `kubelet-xyzf`.") public String getReportingInstance() { return reportingInstance; } @@ -402,6 +419,7 @@ public CoreV1Event series(CoreV1EventSeries series) { * @return series **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public CoreV1EventSeries getSeries() { return series; } @@ -421,6 +439,7 @@ public CoreV1Event source(V1EventSource source) { * @return source **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1EventSource getSource() { return source; } @@ -440,6 +459,7 @@ public CoreV1Event type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type of this event (Normal, Warning), new types could be added in the future") public String getType() { return type; } 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 b219b851d9..443ecc1e2f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.CoreV1Event; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * EventList is a list of events. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EventList is a list of events.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public CoreV1EventList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public CoreV1EventList addItemsItem(CoreV1Event itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of events") public List getItems() { return items; } @@ -129,6 +134,7 @@ public CoreV1EventList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public CoreV1EventList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 bb218b08ea..af6258bd48 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @@ -72,6 +75,7 @@ public CoreV1EventSeries count(Integer count) { * @return count **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Number of occurrences in this series up to the last heartbeat time") public Integer getCount() { return count; } @@ -91,6 +95,7 @@ public CoreV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { * @return lastObservedTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Time of the last occurrence observed") public OffsetDateTime getLastObservedTime() { return lastObservedTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java index f16fbcb6df..df5dbc1aa9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * EndpointPort represents a Port used by an EndpointSlice */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -79,6 +82,7 @@ public DiscoveryV1EndpointPort appProtocol(String appProtocol) { * @return appProtocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.") public String getAppProtocol() { return appProtocol; } @@ -98,6 +102,7 @@ public DiscoveryV1EndpointPort name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.") public String getName() { return name; } @@ -117,6 +122,7 @@ public DiscoveryV1EndpointPort port(Integer port) { * @return port **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.") public Integer getPort() { return port; } @@ -136,6 +142,7 @@ public DiscoveryV1EndpointPort protocol(String protocol) { * @return protocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") public String getProtocol() { return protocol; } 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 8e84961c39..a1a69232a2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1EventSource; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -136,6 +139,7 @@ public EventsV1Event action(String action) { * @return action **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.") public String getAction() { return action; } @@ -155,6 +159,7 @@ public EventsV1Event apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -174,6 +179,7 @@ public EventsV1Event deprecatedCount(Integer deprecatedCount) { * @return deprecatedCount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.") public Integer getDeprecatedCount() { return deprecatedCount; } @@ -193,6 +199,7 @@ public EventsV1Event deprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTime * @return deprecatedFirstTimestamp **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") public OffsetDateTime getDeprecatedFirstTimestamp() { return deprecatedFirstTimestamp; } @@ -212,6 +219,7 @@ public EventsV1Event deprecatedLastTimestamp(OffsetDateTime deprecatedLastTimest * @return deprecatedLastTimestamp **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") public OffsetDateTime getDeprecatedLastTimestamp() { return deprecatedLastTimestamp; } @@ -231,6 +239,7 @@ public EventsV1Event deprecatedSource(V1EventSource deprecatedSource) { * @return deprecatedSource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1EventSource getDeprecatedSource() { return deprecatedSource; } @@ -250,6 +259,7 @@ public EventsV1Event eventTime(OffsetDateTime eventTime) { * @return eventTime **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "eventTime is the time when this Event was first observed. It is required.") public OffsetDateTime getEventTime() { return eventTime; } @@ -269,6 +279,7 @@ public EventsV1Event kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -288,6 +299,7 @@ public EventsV1Event metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -307,6 +319,7 @@ public EventsV1Event note(String note) { * @return note **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") public String getNote() { return note; } @@ -326,6 +339,7 @@ public EventsV1Event reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.") public String getReason() { return reason; } @@ -345,6 +359,7 @@ public EventsV1Event regarding(V1ObjectReference regarding) { * @return regarding **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectReference getRegarding() { return regarding; } @@ -364,6 +379,7 @@ public EventsV1Event related(V1ObjectReference related) { * @return related **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectReference getRelated() { return related; } @@ -383,6 +399,7 @@ public EventsV1Event reportingController(String reportingController) { * @return reportingController **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.") public String getReportingController() { return reportingController; } @@ -402,6 +419,7 @@ public EventsV1Event reportingInstance(String reportingInstance) { * @return reportingInstance **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.") public String getReportingInstance() { return reportingInstance; } @@ -421,6 +439,7 @@ public EventsV1Event series(EventsV1EventSeries series) { * @return series **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public EventsV1EventSeries getSeries() { return series; } @@ -440,6 +459,7 @@ public EventsV1Event type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.") public String getType() { return type; } 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 6878f844d0..04d6b8b899 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.EventsV1Event; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * EventList is a list of Event objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EventList is a list of Event objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public EventsV1EventList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public EventsV1EventList addItemsItem(EventsV1Event itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public EventsV1EventList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public EventsV1EventList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 596f34adfd..a7599dd6c1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @@ -72,6 +75,7 @@ public EventsV1EventSeries count(Integer count) { * @return count **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "count is the number of occurrences in this series up to the last heartbeat time.") public Integer getCount() { return count; } @@ -91,6 +95,7 @@ public EventsV1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { * @return lastObservedTime **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "lastObservedTime is the time when last Event from the series was seen before last heartbeat.") public OffsetDateTime getLastObservedTime() { return lastObservedTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java index 5793168bab..75d225d710 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1GroupSubject; import io.kubernetes.client.openapi.models.V1ServiceAccountSubject; import io.kubernetes.client.openapi.models.V1UserSubject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class FlowcontrolV1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -82,6 +85,7 @@ public FlowcontrolV1Subject group(V1GroupSubject group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GroupSubject getGroup() { return group; } @@ -101,6 +105,7 @@ public FlowcontrolV1Subject kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`kind` indicates which one of the other fields is non-empty. Required") public String getKind() { return kind; } @@ -120,6 +125,7 @@ public FlowcontrolV1Subject serviceAccount(V1ServiceAccountSubject serviceAccoun * @return serviceAccount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ServiceAccountSubject getServiceAccount() { return serviceAccount; } @@ -139,6 +145,7 @@ public FlowcontrolV1Subject user(V1UserSubject user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1UserSubject getUser() { return user; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java index f7d00deb16..0fdc9635a9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class RbacV1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -79,6 +82,7 @@ public RbacV1Subject apiGroup(String apiGroup) { * @return apiGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") public String getApiGroup() { return apiGroup; } @@ -98,6 +102,7 @@ public RbacV1Subject kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.") public String getKind() { return kind; } @@ -117,6 +122,7 @@ public RbacV1Subject name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the object being referenced.") public String getName() { return name; } @@ -136,6 +142,7 @@ public RbacV1Subject namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") public String getNamespace() { return namespace; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java index 5070f9679d..429a06a853 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * TokenRequest contains parameters of a service account token. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TokenRequest contains parameters of a service account token.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) @@ -71,6 +74,7 @@ public StorageV1TokenRequest audience(String audience) { * @return audience **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.") public String getAudience() { return audience; } @@ -90,6 +94,7 @@ public StorageV1TokenRequest expirationSeconds(Long expirationSeconds) { * @return expirationSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".") public Long getExpirationSeconds() { return expirationSeconds; } 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 fe4a6e49df..aa04c7192d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery; import io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * APIGroup contains the name, the supported versions, and the preferred version of a group. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIGroup contains the name, the supported versions, and the preferred version of a group.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -91,6 +94,7 @@ public V1APIGroup apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1APIGroup kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -129,6 +134,7 @@ public V1APIGroup name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the group.") public String getName() { return name; } @@ -148,6 +154,7 @@ public V1APIGroup preferredVersion(V1GroupVersionForDiscovery preferredVersion) * @return preferredVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GroupVersionForDiscovery getPreferredVersion() { return preferredVersion; } @@ -175,6 +182,7 @@ public V1APIGroup addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR * @return serverAddressByClientCIDRs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.") public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } @@ -202,6 +210,7 @@ public V1APIGroup addVersionsItem(V1GroupVersionForDiscovery versionsItem) { * @return versions **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "versions are the versions supported in this group.") public List getVersions() { return versions; } 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 fc76bf46da..310dccd8d4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -78,6 +81,7 @@ public V1APIGroupList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1APIGroupList addGroupsItem(V1APIGroup groupsItem) { * @return groups **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "groups is a list of APIGroup.") public List getGroups() { return groups; } @@ -124,6 +129,7 @@ public V1APIGroupList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return 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 11a171cb72..5586ec1754 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * APIResource specifies the name of a resource and whether it is namespaced. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIResource specifies the name of a resource and whether it is namespaced.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) @@ -113,6 +116,7 @@ public V1APIResource addCategoriesItem(String categoriesItem) { * @return categories **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "categories is a list of the grouped resources this resource belongs to (e.g. 'all')") public List getCategories() { return categories; } @@ -132,6 +136,7 @@ public V1APIResource group(String group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".") public String getGroup() { return group; } @@ -151,6 +156,7 @@ public V1APIResource kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')") public String getKind() { return kind; } @@ -170,6 +176,7 @@ public V1APIResource name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the plural name of the resource.") public String getName() { return name; } @@ -189,6 +196,7 @@ public V1APIResource namespaced(Boolean namespaced) { * @return namespaced **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "namespaced indicates if a resource is namespaced or not.") public Boolean getNamespaced() { return namespaced; } @@ -216,6 +224,7 @@ public V1APIResource addShortNamesItem(String shortNamesItem) { * @return shortNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "shortNames is a list of suggested short names of the resource.") public List getShortNames() { return shortNames; } @@ -235,6 +244,7 @@ public V1APIResource singularName(String singularName) { * @return singularName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.") public String getSingularName() { return singularName; } @@ -254,6 +264,7 @@ public V1APIResource storageVersionHash(String storageVersionHash) { * @return storageVersionHash **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.") public String getStorageVersionHash() { return storageVersionHash; } @@ -281,6 +292,7 @@ public V1APIResource addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)") public List getVerbs() { return verbs; } @@ -300,6 +312,7 @@ public V1APIResource version(String version) { * @return version **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".") public String getVersion() { return version; } 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 e4bf5df94f..530bd54a82 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIResource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -82,6 +85,7 @@ public V1APIResourceList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -101,6 +105,7 @@ public V1APIResourceList groupVersion(String groupVersion) { * @return groupVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "groupVersion is the group and version this APIResourceList is for.") public String getGroupVersion() { return groupVersion; } @@ -120,6 +125,7 @@ public V1APIResourceList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -147,6 +153,7 @@ public V1APIResourceList addResourcesItem(V1APIResource resourcesItem) { * @return resources **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "resources contains the name of the resources and if they are namespaced.") public List getResources() { return resources; } 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 6359ab24f6..58017301ff 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1APIServiceSpec; import io.kubernetes.client.openapi.models.V1APIServiceStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1APIService apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1APIService kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1APIService metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1APIService spec(V1APIServiceSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1APIServiceSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1APIService status(V1APIServiceStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1APIServiceStatus getStatus() { return status; } 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 54ad920639..9607787577 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * APIServiceCondition describes the state of an APIService at a particular point */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIServiceCondition describes the state of an APIService at a particular point") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1APIServiceCondition lastTransitionTime(OffsetDateTime lastTransitionTim * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1APIServiceCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1APIServiceCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1APIServiceCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1APIServiceCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type is the type of the condition.") public String getType() { return type; } 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 b162c920b6..7279065369 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIService; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * APIServiceList is a list of APIService objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIServiceList is a list of APIService objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1APIServiceList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1APIServiceList addItemsItem(V1APIService itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of APIService") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1APIServiceList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1APIServiceList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 9f21812adf..11dcfacabd 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -92,6 +95,7 @@ public V1APIServiceSpec caBundle(byte[] caBundle) { * @return caBundle **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.") public byte[] getCaBundle() { return caBundle; } @@ -111,6 +115,7 @@ public V1APIServiceSpec group(String group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Group is the API group name this server hosts") public String getGroup() { return group; } @@ -130,6 +135,7 @@ public V1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) { * @return groupPriorityMinimum **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s") public Integer getGroupPriorityMinimum() { return groupPriorityMinimum; } @@ -149,6 +155,7 @@ public V1APIServiceSpec insecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { * @return insecureSkipTLSVerify **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.") public Boolean getInsecureSkipTLSVerify() { return insecureSkipTLSVerify; } @@ -168,6 +175,7 @@ public V1APIServiceSpec service(ApiregistrationV1ServiceReference service) { * @return service **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public ApiregistrationV1ServiceReference getService() { return service; } @@ -187,6 +195,7 @@ public V1APIServiceSpec version(String version) { * @return version **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Version is the API version this server hosts. For example, \"v1\"") public String getVersion() { return version; } @@ -206,6 +215,7 @@ public V1APIServiceSpec versionPriority(Integer versionPriority) { * @return versionPriority **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.") public Integer getVersionPriority() { return versionPriority; } 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 f6d1c31f24..ad00328045 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1APIServiceCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * APIServiceStatus contains derived information about an API server */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "APIServiceStatus contains derived information about an API server") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -78,6 +81,7 @@ public V1APIServiceStatus addConditionsItem(V1APIServiceCondition conditionsItem * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Current service state of apiService.") public List getConditions() { return conditions; } 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 d47297be1b..0ae9d4b39e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -82,6 +85,7 @@ public V1APIVersions apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -101,6 +105,7 @@ public V1APIVersions kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -128,6 +133,7 @@ public V1APIVersions addServerAddressByClientCIDRsItem(V1ServerAddressByClientCI * @return serverAddressByClientCIDRs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.") public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } @@ -155,6 +161,7 @@ public V1APIVersions addVersionsItem(String versionsItem) { * @return versions **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "versions are the api versions that are available.") public List getVersions() { return versions; } 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 33d25d0b7c..679cced847 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -79,6 +82,7 @@ public V1AWSElasticBlockStoreVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") public String getFsType() { return fsType; } @@ -98,6 +102,7 @@ public V1AWSElasticBlockStoreVolumeSource partition(Integer partition) { * @return partition **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).") public Integer getPartition() { return partition; } @@ -117,6 +122,7 @@ public V1AWSElasticBlockStoreVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") public Boolean getReadOnly() { return readOnly; } @@ -136,6 +142,7 @@ public V1AWSElasticBlockStoreVolumeSource volumeID(String volumeID) { * @return volumeID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") public String getVolumeID() { return volumeID; } 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 1289fc91e8..551f7cdda1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1NodeAffinity; import io.kubernetes.client.openapi.models.V1PodAffinity; import io.kubernetes.client.openapi.models.V1PodAntiAffinity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Affinity is a group of affinity scheduling rules. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Affinity is a group of affinity scheduling rules.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) @@ -78,6 +81,7 @@ public V1Affinity nodeAffinity(V1NodeAffinity nodeAffinity) { * @return nodeAffinity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeAffinity getNodeAffinity() { return nodeAffinity; } @@ -97,6 +101,7 @@ public V1Affinity podAffinity(V1PodAffinity podAffinity) { * @return podAffinity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodAffinity getPodAffinity() { return podAffinity; } @@ -116,6 +121,7 @@ public V1Affinity podAntiAffinity(V1PodAntiAffinity podAntiAffinity) { * @return podAntiAffinity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodAntiAffinity getPodAntiAffinity() { return podAntiAffinity; } 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 699b298ce5..1c7682fc43 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) @@ -78,6 +81,7 @@ public V1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clusterRole * @return clusterRoleSelectors **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") public List getClusterRoleSelectors() { return clusterRoleSelectors; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java index 18d4aafc92..485cb72524 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AppArmorProfile defines a pod or container's AppArmor settings. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AppArmorProfile defines a pod or container's AppArmor settings.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AppArmorProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) @@ -71,6 +74,7 @@ public V1AppArmorProfile localhostProfile(String localhostProfile) { * @return localhostProfile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".") public String getLocalhostProfile() { return localhostProfile; } @@ -90,6 +94,7 @@ public V1AppArmorProfile type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement.") public String getType() { return type; } 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 4a4f3fcd8a..26ff1811d2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AttachedVolume describes a volume attached to a node */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AttachedVolume describes a volume attached to a node") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) @@ -71,6 +74,7 @@ public V1AttachedVolume devicePath(String devicePath) { * @return devicePath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "DevicePath represents the device path where the volume should be available") public String getDevicePath() { return devicePath; } @@ -90,6 +94,7 @@ public V1AttachedVolume name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the attached volume") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java index abd5e7233b..1c6c1aec90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AuditAnnotation describes how to produce an audit annotation for an API request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AuditAnnotation { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,6 +74,7 @@ public V1AuditAnnotation key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required.") public String getKey() { return key; } @@ -90,6 +94,7 @@ public V1AuditAnnotation valueExpression(String valueExpression) { * @return valueExpression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required.") public String getValueExpression() { return valueExpression; } 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 d54f1eb796..dcaf2bdd4f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; @SerializedName(SERIALIZED_NAME_CACHING_MODE) @@ -87,6 +90,7 @@ public V1AzureDiskVolumeSource cachingMode(String cachingMode) { * @return cachingMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "cachingMode is the Host Caching mode: None, Read Only, Read Write.") public String getCachingMode() { return cachingMode; } @@ -106,6 +110,7 @@ public V1AzureDiskVolumeSource diskName(String diskName) { * @return diskName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "diskName is the Name of the data disk in the blob storage") public String getDiskName() { return diskName; } @@ -125,6 +130,7 @@ public V1AzureDiskVolumeSource diskURI(String diskURI) { * @return diskURI **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "diskURI is the URI of data disk in the blob storage") public String getDiskURI() { return diskURI; } @@ -144,6 +150,7 @@ public V1AzureDiskVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } @@ -163,6 +170,7 @@ public V1AzureDiskVolumeSource kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared") public String getKind() { return kind; } @@ -182,6 +190,7 @@ public V1AzureDiskVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } 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 8a3f19d029..df6a9ca240 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -79,6 +82,7 @@ public V1AzureFilePersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -98,6 +102,7 @@ public V1AzureFilePersistentVolumeSource secretName(String secretName) { * @return secretName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "secretName is the name of secret that contains Azure Storage Account Name and Key") public String getSecretName() { return secretName; } @@ -117,6 +122,7 @@ public V1AzureFilePersistentVolumeSource secretNamespace(String secretNamespace) * @return secretNamespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod") public String getSecretNamespace() { return secretNamespace; } @@ -136,6 +142,7 @@ public V1AzureFilePersistentVolumeSource shareName(String shareName) { * @return shareName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "shareName is the azure Share Name") public String getShareName() { return shareName; } 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 9cfb998568..3053399578 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -75,6 +78,7 @@ public V1AzureFileVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -94,6 +98,7 @@ public V1AzureFileVolumeSource secretName(String secretName) { * @return secretName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "secretName is the name of secret that contains Azure Storage Account Name and Key") public String getSecretName() { return secretName; } @@ -113,6 +118,7 @@ public V1AzureFileVolumeSource shareName(String shareName) { * @return shareName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "shareName is the azure share Name") public String getShareName() { return shareName; } 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 7d6f28a133..7902d406f0 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1Binding apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1Binding kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1Binding metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1Binding target(V1ObjectReference target) { * @return target **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1ObjectReference getTarget() { return target; } 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 172cc83804..a638f78e4f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * BoundObjectReference is a reference to an object that a token is bound to. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "BoundObjectReference is a reference to an object that a token is bound to.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -79,6 +82,7 @@ public V1BoundObjectReference apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "API version of the referent.") public String getApiVersion() { return apiVersion; } @@ -98,6 +102,7 @@ public V1BoundObjectReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.") public String getKind() { return kind; } @@ -117,6 +122,7 @@ public V1BoundObjectReference name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent.") public String getName() { return name; } @@ -136,6 +142,7 @@ public V1BoundObjectReference uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UID of the referent.") public String getUid() { return uid; } 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 9c15da4e19..487591bed7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSIDriverSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1CSIDriver apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1CSIDriver kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1CSIDriver metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1CSIDriver spec(V1CSIDriverSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1CSIDriverSpec getSpec() { return spec; } 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 da0d23621b..5bf23daf6e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSIDriver; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CSIDriverList is a collection of CSIDriver objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1CSIDriverList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1CSIDriverList addItemsItem(V1CSIDriver itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of CSIDriver") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1CSIDriverList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1CSIDriverList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 9be167e9b7..665668c62c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.StorageV1TokenRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * CSIDriverSpec is the specification of a CSIDriver. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) @@ -98,6 +101,7 @@ public V1CSIDriverSpec attachRequired(Boolean attachRequired) { * @return attachRequired **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable.") public Boolean getAttachRequired() { return attachRequired; } @@ -117,6 +121,7 @@ public V1CSIDriverSpec fsGroupPolicy(String fsGroupPolicy) { * @return fsGroupPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.") public String getFsGroupPolicy() { return fsGroupPolicy; } @@ -136,6 +141,7 @@ public V1CSIDriverSpec podInfoOnMount(Boolean podInfoOnMount) { * @return podInfoOnMount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable.") public Boolean getPodInfoOnMount() { return podInfoOnMount; } @@ -155,6 +161,7 @@ public V1CSIDriverSpec requiresRepublish(Boolean requiresRepublish) { * @return requiresRepublish **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.") public Boolean getRequiresRepublish() { return requiresRepublish; } @@ -174,6 +181,7 @@ public V1CSIDriverSpec seLinuxMount(Boolean seLinuxMount) { * @return seLinuxMount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\".") public Boolean getSeLinuxMount() { return seLinuxMount; } @@ -193,6 +201,7 @@ public V1CSIDriverSpec storageCapacity(Boolean storageCapacity) { * @return storageCapacity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable.") public Boolean getStorageCapacity() { return storageCapacity; } @@ -220,6 +229,7 @@ public V1CSIDriverSpec addTokenRequestsItem(StorageV1TokenRequest tokenRequestsI * @return tokenRequests **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": { \"\": { \"token\": , \"expirationTimestamp\": , }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.") public List getTokenRequests() { return tokenRequests; } @@ -247,6 +257,7 @@ public V1CSIDriverSpec addVolumeLifecycleModesItem(String volumeLifecycleModesIt * @return volumeLifecycleModes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable.") public List getVolumeLifecycleModes() { return volumeLifecycleModes; } 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 b945274f37..e4a0d082c6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSINodeSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1CSINode apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1CSINode kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1CSINode metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1CSINode spec(V1CSINodeSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1CSINodeSpec getSpec() { return spec; } 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 d164f0808b..85d67a1d9c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeNodeResources; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * CSINodeDriver holds information about the specification of one CSI driver installed on a node */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CSINodeDriver holds information about the specification of one CSI driver installed on a node") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) @@ -82,6 +85,7 @@ public V1CSINodeDriver allocatable(V1VolumeNodeResources allocatable) { * @return allocatable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VolumeNodeResources getAllocatable() { return allocatable; } @@ -101,6 +105,7 @@ public V1CSINodeDriver name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.") public String getName() { return name; } @@ -120,6 +125,7 @@ public V1CSINodeDriver nodeID(String nodeID) { * @return nodeID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.") public String getNodeID() { return nodeID; } @@ -147,6 +153,7 @@ public V1CSINodeDriver addTopologyKeysItem(String topologyKeysItem) { * @return topologyKeys **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.") public List getTopologyKeys() { return topologyKeys; } 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 08d5f3a276..319e2f900b 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSINode; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CSINodeList is a collection of CSINode objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CSINodeList is a collection of CSINode objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1CSINodeList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1CSINodeList addItemsItem(V1CSINode itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of CSINode") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1CSINodeList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1CSINodeList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 aa08f93302..c9215e1d19 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSINodeDriver; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * CSINodeSpec holds information about the specification of all CSI drivers installed on a node */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_DRIVERS) @@ -78,6 +81,7 @@ public V1CSINodeSpec addDriversItem(V1CSINodeDriver driversItem) { * @return drivers **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.") public List getDrivers() { return 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 22a56753d9..aa621389a4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * Represents storage that is managed by an external CSI volume driver (Beta feature) */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents storage that is managed by an external CSI volume driver (Beta feature)") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) @@ -106,6 +109,7 @@ public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference c * @return controllerExpandSecretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getControllerExpandSecretRef() { return controllerExpandSecretRef; } @@ -125,6 +129,7 @@ public V1CSIPersistentVolumeSource controllerPublishSecretRef(V1SecretReference * @return controllerPublishSecretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getControllerPublishSecretRef() { return controllerPublishSecretRef; } @@ -144,6 +149,7 @@ public V1CSIPersistentVolumeSource driver(String driver) { * @return driver **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume. Required.") public String getDriver() { return driver; } @@ -163,6 +169,7 @@ public V1CSIPersistentVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".") public String getFsType() { return fsType; } @@ -182,6 +189,7 @@ public V1CSIPersistentVolumeSource nodeExpandSecretRef(V1SecretReference nodeExp * @return nodeExpandSecretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getNodeExpandSecretRef() { return nodeExpandSecretRef; } @@ -201,6 +209,7 @@ public V1CSIPersistentVolumeSource nodePublishSecretRef(V1SecretReference nodePu * @return nodePublishSecretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getNodePublishSecretRef() { return nodePublishSecretRef; } @@ -220,6 +229,7 @@ public V1CSIPersistentVolumeSource nodeStageSecretRef(V1SecretReference nodeStag * @return nodeStageSecretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getNodeStageSecretRef() { return nodeStageSecretRef; } @@ -239,6 +249,7 @@ public V1CSIPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).") public Boolean getReadOnly() { return readOnly; } @@ -266,6 +277,7 @@ public V1CSIPersistentVolumeSource putVolumeAttributesItem(String key, String vo * @return volumeAttributes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeAttributes of the volume to publish.") public Map getVolumeAttributes() { return volumeAttributes; } @@ -285,6 +297,7 @@ public V1CSIPersistentVolumeSource volumeHandle(String volumeHandle) { * @return volumeHandle **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.") public String getVolumeHandle() { return volumeHandle; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java index cb879c4bf4..f0e6d49ff6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -94,6 +97,7 @@ public V1CSIStorageCapacity apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -113,6 +117,7 @@ public V1CSIStorageCapacity capacity(Quantity capacity) { * @return capacity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getCapacity() { return capacity; } @@ -132,6 +137,7 @@ public V1CSIStorageCapacity kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -151,6 +157,7 @@ public V1CSIStorageCapacity maximumVolumeSize(Quantity maximumVolumeSize) { * @return maximumVolumeSize **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getMaximumVolumeSize() { return maximumVolumeSize; } @@ -170,6 +177,7 @@ public V1CSIStorageCapacity metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -189,6 +197,7 @@ public V1CSIStorageCapacity nodeTopology(V1LabelSelector nodeTopology) { * @return nodeTopology **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNodeTopology() { return nodeTopology; } @@ -208,6 +217,7 @@ public V1CSIStorageCapacity storageClassName(String storageClassName) { * @return storageClassName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.") public String getStorageClassName() { return storageClassName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java index effc2f23e8..cffc408a34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CSIStorageCapacity; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1CSIStorageCapacityList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1CSIStorageCapacityList addItemsItem(V1CSIStorageCapacity itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of CSIStorageCapacity objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1CSIStorageCapacityList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1CSIStorageCapacityList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 66c230ccfc..30536c7dc7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * Represents a source location of a volume to mount, managed by an external CSI driver */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a source location of a volume to mount, managed by an external CSI driver") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -86,6 +89,7 @@ public V1CSIVolumeSource driver(String driver) { * @return driver **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.") public String getDriver() { return driver; } @@ -105,6 +109,7 @@ public V1CSIVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.") public String getFsType() { return fsType; } @@ -124,6 +129,7 @@ public V1CSIVolumeSource nodePublishSecretRef(V1LocalObjectReference nodePublish * @return nodePublishSecretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalObjectReference getNodePublishSecretRef() { return nodePublishSecretRef; } @@ -143,6 +149,7 @@ public V1CSIVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).") public Boolean getReadOnly() { return readOnly; } @@ -170,6 +177,7 @@ public V1CSIVolumeSource putVolumeAttributesItem(String key, String volumeAttrib * @return volumeAttributes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.") public Map getVolumeAttributes() { return volumeAttributes; } 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 dcf4982e85..4675b06520 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * Adds and removes POSIX capabilities from running containers. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Adds and removes POSIX capabilities from running containers.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) @@ -81,6 +84,7 @@ public V1Capabilities addAddItem(String addItem) { * @return add **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Added capabilities") public List getAdd() { return add; } @@ -108,6 +112,7 @@ public V1Capabilities addDropItem(String dropItem) { * @return drop **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Removed capabilities") public List getDrop() { return drop; } 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 9b5ea1e5b0..005a5b8baa 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) @@ -98,6 +101,7 @@ public V1CephFSPersistentVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public List getMonitors() { return monitors; } @@ -117,6 +121,7 @@ public V1CephFSPersistentVolumeSource path(String path) { * @return path **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /") public String getPath() { return path; } @@ -136,6 +141,7 @@ public V1CephFSPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } @@ -155,6 +161,7 @@ public V1CephFSPersistentVolumeSource secretFile(String secretFile) { * @return secretFile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getSecretFile() { return secretFile; } @@ -174,6 +181,7 @@ public V1CephFSPersistentVolumeSource secretRef(V1SecretReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } @@ -193,6 +201,7 @@ public V1CephFSPersistentVolumeSource user(String user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getUser() { return user; } 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 123f67c9b1..3fc35d7dc6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) @@ -98,6 +101,7 @@ public V1CephFSVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public List getMonitors() { return monitors; } @@ -117,6 +121,7 @@ public V1CephFSVolumeSource path(String path) { * @return path **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /") public String getPath() { return path; } @@ -136,6 +141,7 @@ public V1CephFSVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } @@ -155,6 +161,7 @@ public V1CephFSVolumeSource secretFile(String secretFile) { * @return secretFile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getSecretFile() { return secretFile; } @@ -174,6 +181,7 @@ public V1CephFSVolumeSource secretRef(V1LocalObjectReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -193,6 +201,7 @@ public V1CephFSVolumeSource user(String user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") public String getUser() { return user; } 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 e3fab0b917..159373f521 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec; import io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1CertificateSigningRequest apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1CertificateSigningRequest kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1CertificateSigningRequest metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1CertificateSigningRequest spec(V1CertificateSigningRequestSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1CertificateSigningRequestSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1CertificateSigningRequest status(V1CertificateSigningRequestStatus stat * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CertificateSigningRequestStatus getStatus() { return status; } 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 6a2d55cf5c..e973de4c23 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -88,6 +91,7 @@ public V1CertificateSigningRequestCondition lastTransitionTime(OffsetDateTime la * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @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 OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -107,6 +111,7 @@ public V1CertificateSigningRequestCondition lastUpdateTime(OffsetDateTime lastUp * @return lastUpdateTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastUpdateTime is the time of the last update to this condition") public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } @@ -126,6 +131,7 @@ public V1CertificateSigningRequestCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "message contains a human readable message with details about the request state") public String getMessage() { return message; } @@ -145,6 +151,7 @@ public V1CertificateSigningRequestCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reason indicates a brief reason for the request state") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1CertificateSigningRequestCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1CertificateSigningRequestCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed.") public String getType() { return type; } 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 214ceca9c9..0fc74c462d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CertificateSigningRequest; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CertificateSigningRequestList is a collection of CertificateSigningRequest objects */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1CertificateSigningRequestList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1CertificateSigningRequestList addItemsItem(V1CertificateSigningRequest * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a collection of CertificateSigningRequest objects") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1CertificateSigningRequestList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1CertificateSigningRequestList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 dc83571fcb..3bbda2781e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CertificateSigningRequestSpec contains the certificate request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) @@ -99,6 +102,7 @@ public V1CertificateSigningRequestSpec expirationSeconds(Integer expirationSecon * @return expirationSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. Certificate signers may not honor this field for various reasons: 1. Old signer that is unaware of the field (such as the in-tree implementations prior to v1.22) 2. Signer whose configured maximum is shorter than the requested duration 3. Signer whose configured minimum is longer than the requested duration The minimum valid value for expirationSeconds is 600, i.e. 10 minutes.") public Integer getExpirationSeconds() { return expirationSeconds; } @@ -126,6 +130,7 @@ public V1CertificateSigningRequestSpec putExtraItem(String key, List ext * @return extra **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public Map> getExtra() { return extra; } @@ -153,6 +158,7 @@ public V1CertificateSigningRequestSpec addGroupsItem(String groupsItem) { * @return groups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public List getGroups() { return groups; } @@ -172,6 +178,7 @@ public V1CertificateSigningRequestSpec request(byte[] request) { * @return request **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.") public byte[] getRequest() { return request; } @@ -191,6 +198,7 @@ public V1CertificateSigningRequestSpec signerName(String signerName) { * @return signerName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "signerName indicates the requested signer, and is a qualified name. List/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector. Well-known Kubernetes signers are: 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver. Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager. 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver. Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager. More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers Custom signerNames can also be specified. The signer defines: 1. Trust distribution: how trust (CA bundles) are distributed. 2. Permitted subjects: and behavior when a disallowed subject is requested. 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. 4. Required, permitted, or forbidden key usages / extended key usages. 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. 6. Whether or not requests for CA certificates are allowed.") public String getSignerName() { return signerName; } @@ -210,6 +218,7 @@ public V1CertificateSigningRequestSpec uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public String getUid() { return uid; } @@ -237,6 +246,7 @@ public V1CertificateSigningRequestSpec addUsagesItem(String usagesItem) { * @return usages **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "usages specifies a set of key usages requested in the issued certificate. Requests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\". Requests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\". Valid values are: \"signing\", \"digital signature\", \"content commitment\", \"key encipherment\", \"key agreement\", \"data encipherment\", \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\", \"server auth\", \"client auth\", \"code signing\", \"email protection\", \"s/mime\", \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\", \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"") public List getUsages() { return usages; } @@ -256,6 +266,7 @@ public V1CertificateSigningRequestSpec username(String username) { * @return username **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.") public String getUsername() { return username; } 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 e7d45ffe46..49fc5251d9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @SerializedName(SERIALIZED_NAME_CERTIFICATE) @@ -74,6 +77,7 @@ public V1CertificateSigningRequestStatus certificate(byte[] certificate) { * @return certificate **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- )") public byte[] getCertificate() { return certificate; } @@ -101,6 +105,7 @@ public V1CertificateSigningRequestStatus addConditionsItem(V1CertificateSigningR * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".") public List getConditions() { return conditions; } 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 d3600eb7ce..4de6dd94fa 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -80,6 +83,7 @@ public V1CinderPersistentVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getFsType() { return fsType; } @@ -99,6 +103,7 @@ public V1CinderPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public Boolean getReadOnly() { return readOnly; } @@ -118,6 +123,7 @@ public V1CinderPersistentVolumeSource secretRef(V1SecretReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } @@ -137,6 +143,7 @@ public V1CinderPersistentVolumeSource volumeID(String volumeID) { * @return volumeID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getVolumeID() { return volumeID; } 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 66ac39f20c..1ccb7f1da1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -80,6 +83,7 @@ public V1CinderVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getFsType() { return fsType; } @@ -99,6 +103,7 @@ public V1CinderVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public Boolean getReadOnly() { return readOnly; } @@ -118,6 +123,7 @@ public V1CinderVolumeSource secretRef(V1LocalObjectReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -137,6 +143,7 @@ public V1CinderVolumeSource volumeID(String volumeID) { * @return volumeID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") public String getVolumeID() { return volumeID; } 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 bbb58584a9..6d90e2e9c1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ClientIPConfig represents the configurations of Client IP based session affinity. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClientIPConfig represents the configurations of Client IP based session affinity.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) @@ -67,6 +70,7 @@ public V1ClientIPConfig timeoutSeconds(Integer timeoutSeconds) { * @return timeoutSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).") public Integer getTimeoutSeconds() { return 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 3e490700cf..38dae125c5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1AggregationRule; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) @@ -88,6 +91,7 @@ public V1ClusterRole aggregationRule(V1AggregationRule aggregationRule) { * @return aggregationRule **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AggregationRule getAggregationRule() { return aggregationRule; } @@ -107,6 +111,7 @@ public V1ClusterRole apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -126,6 +131,7 @@ public V1ClusterRole kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -145,6 +151,7 @@ public V1ClusterRole metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -172,6 +179,7 @@ public V1ClusterRole addRulesItem(V1PolicyRule rulesItem) { * @return rules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Rules holds all the PolicyRules for this ClusterRole") public List getRules() { return rules; } 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 1144c9a955..eae12648e3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.RbacV1Subject; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1RoleRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -88,6 +91,7 @@ public V1ClusterRoleBinding apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -107,6 +111,7 @@ public V1ClusterRoleBinding kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -126,6 +131,7 @@ public V1ClusterRoleBinding metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -145,6 +151,7 @@ public V1ClusterRoleBinding roleRef(V1RoleRef roleRef) { * @return roleRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1RoleRef getRoleRef() { return roleRef; } @@ -172,6 +179,7 @@ public V1ClusterRoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { * @return subjects **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") public List getSubjects() { return subjects; } 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 433692b66c..1596fadd0f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ClusterRoleBinding; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ClusterRoleBindingList is a collection of ClusterRoleBindings */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ClusterRoleBindingList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ClusterRoleBindingList addItemsItem(V1ClusterRoleBinding itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of ClusterRoleBindings") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ClusterRoleBindingList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ClusterRoleBindingList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 48342058ba..13f82a396b 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ClusterRole; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ClusterRoleList is a collection of ClusterRoles */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ClusterRoleList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ClusterRoleList addItemsItem(V1ClusterRole itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of ClusterRoles") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ClusterRoleList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ClusterRoleList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java index 1b1cda081a..191544b073 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ClusterTrustBundleProjection { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -84,6 +87,7 @@ public V1ClusterTrustBundleProjection labelSelector(V1LabelSelector labelSelecto * @return labelSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getLabelSelector() { return labelSelector; } @@ -103,6 +107,7 @@ public V1ClusterTrustBundleProjection name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.") public String getName() { return name; } @@ -122,6 +127,7 @@ public V1ClusterTrustBundleProjection optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.") public Boolean getOptional() { return optional; } @@ -141,6 +147,7 @@ public V1ClusterTrustBundleProjection path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Relative path from the volume root to write the bundle.") public String getPath() { return path; } @@ -160,6 +167,7 @@ public V1ClusterTrustBundleProjection signerName(String signerName) { * @return signerName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.") public String getSignerName() { return signerName; } 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 9d31dcd581..01ed51ff69 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Information about the condition of a component. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Information about the condition of a component.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -79,6 +82,7 @@ public V1ComponentCondition error(String error) { * @return error **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Condition error code for a component. For example, a health check error code.") public String getError() { return error; } @@ -98,6 +102,7 @@ public V1ComponentCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message about the condition for a component. For example, information about a health check.") public String getMessage() { return message; } @@ -117,6 +122,7 @@ public V1ComponentCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".") public String getStatus() { return status; } @@ -136,6 +142,7 @@ public V1ComponentCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of condition for a component. Valid value: \"Healthy\"") public String getType() { return type; } 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 41ff4adce1..8170e2c619 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ComponentCondition; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ComponentStatus apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ComponentStatus addConditionsItem(V1ComponentCondition conditionsItem) * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of component conditions observed") public List getConditions() { return conditions; } @@ -129,6 +134,7 @@ public V1ComponentStatus kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ComponentStatus metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } 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 0756ae54b0..bbe2d73fbd 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ComponentStatus; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ComponentStatusList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ComponentStatusList addItemsItem(V1ComponentStatus itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ComponentStatus objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ComponentStatusList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ComponentStatusList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java index 0402e604b5..f93d659e54 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Condition contains details for one aspect of the current state of this API Resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -88,6 +91,7 @@ public V1Condition lastTransitionTime(OffsetDateTime lastTransitionTime) { * @return lastTransitionTime **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -107,6 +111,7 @@ public V1Condition message(String message) { * @return message **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "message is a human readable message indicating details about the transition. This may be an empty string.") public String getMessage() { return message; } @@ -126,6 +131,7 @@ public V1Condition observedGeneration(Long observedGeneration) { * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.") public Long getObservedGeneration() { return observedGeneration; } @@ -145,6 +151,7 @@ public V1Condition reason(String reason) { * @return reason **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1Condition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1Condition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type of condition in CamelCase or in foo.example.com/CamelCase.") public String getType() { return type; } 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 5fbd06a362..6540ab6ff4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * ConfigMap holds configuration data for pods to consume. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ConfigMap holds configuration data for pods to consume.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -90,6 +93,7 @@ public V1ConfigMap apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -117,6 +121,7 @@ public V1ConfigMap putBinaryDataItem(String key, byte[] binaryDataItem) { * @return binaryData **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.") public Map getBinaryData() { return binaryData; } @@ -144,6 +149,7 @@ public V1ConfigMap putDataItem(String key, String dataItem) { * @return data **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.") public Map getData() { return data; } @@ -163,6 +169,7 @@ public V1ConfigMap immutable(Boolean immutable) { * @return immutable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.") public Boolean getImmutable() { return immutable; } @@ -182,6 +189,7 @@ public V1ConfigMap kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -201,6 +209,7 @@ public V1ConfigMap metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } 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 8b895aba22..a26cb0f79d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1ConfigMapEnvSource name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1ConfigMapEnvSource optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specify whether the ConfigMap must be defined") public Boolean getOptional() { return optional; } 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 22b5dbbeab..f49bf1b550 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Selects a key from a ConfigMap. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Selects a key from a ConfigMap.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -75,6 +78,7 @@ public V1ConfigMapKeySelector key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The key to select.") public String getKey() { return key; } @@ -94,6 +98,7 @@ public V1ConfigMapKeySelector name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -113,6 +118,7 @@ public V1ConfigMapKeySelector optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") public Boolean getOptional() { return optional; } 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 5377b705ec..2741904ddc 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ConfigMap; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ConfigMapList is a resource containing a list of ConfigMap objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ConfigMapList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ConfigMapList addItemsItem(V1ConfigMap itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of ConfigMaps.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ConfigMapList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ConfigMapList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 7d0d9428a6..900b3b0842 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) @@ -83,6 +86,7 @@ public V1ConfigMapNodeConfigSource kubeletConfigKey(String kubeletConfigKey) { * @return kubeletConfigKey **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.") public String getKubeletConfigKey() { return kubeletConfigKey; } @@ -102,6 +106,7 @@ public V1ConfigMapNodeConfigSource name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.") public String getName() { return name; } @@ -121,6 +126,7 @@ public V1ConfigMapNodeConfigSource namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.") public String getNamespace() { return namespace; } @@ -140,6 +146,7 @@ public V1ConfigMapNodeConfigSource resourceVersion(String resourceVersion) { * @return resourceVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") public String getResourceVersion() { return resourceVersion; } @@ -159,6 +166,7 @@ public V1ConfigMapNodeConfigSource uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") public String getUid() { return uid; } 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 c11f829b0d..6251ab968e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -86,6 +89,7 @@ public V1ConfigMapProjection addItemsItem(V1KeyToPath itemsItem) { * @return items **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } @@ -105,6 +109,7 @@ public V1ConfigMapProjection name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -124,6 +129,7 @@ public V1ConfigMapProjection optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "optional specify whether the ConfigMap or its keys must be defined") public Boolean getOptional() { return optional; } 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 f9e3af0d41..0624cb1702 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -82,6 +85,7 @@ public V1ConfigMapVolumeSource defaultMode(Integer defaultMode) { * @return defaultMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } @@ -109,6 +113,7 @@ public V1ConfigMapVolumeSource addItemsItem(V1KeyToPath itemsItem) { * @return items **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } @@ -128,6 +133,7 @@ public V1ConfigMapVolumeSource name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -147,6 +153,7 @@ public V1ConfigMapVolumeSource optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "optional specify whether the ConfigMap or its keys must be defined") public Boolean getOptional() { return optional; } 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 80e3f2579d..060c0b4600 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +28,8 @@ import io.kubernetes.client.openapi.models.V1SecurityContext; import io.kubernetes.client.openapi.models.V1VolumeDevice; import io.kubernetes.client.openapi.models.V1VolumeMount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -60,7 +62,8 @@ /** * A single application container that you want to run within a pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A single application container that you want to run within a pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -179,6 +182,7 @@ public V1Container addArgsItem(String argsItem) { * @return args **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getArgs() { return args; } @@ -206,6 +210,7 @@ public V1Container addCommandItem(String commandItem) { * @return command **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getCommand() { return command; } @@ -233,6 +238,7 @@ public V1Container addEnvItem(V1EnvVar envItem) { * @return env **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of environment variables to set in the container. Cannot be updated.") public List getEnv() { return env; } @@ -260,6 +266,7 @@ public V1Container addEnvFromItem(V1EnvFromSource envFromItem) { * @return envFrom **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") public List getEnvFrom() { return envFrom; } @@ -279,6 +286,7 @@ public V1Container image(String image) { * @return image **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.") public String getImage() { return image; } @@ -298,6 +306,7 @@ public V1Container imagePullPolicy(String imagePullPolicy) { * @return imagePullPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images") public String getImagePullPolicy() { return imagePullPolicy; } @@ -317,6 +326,7 @@ public V1Container lifecycle(V1Lifecycle lifecycle) { * @return lifecycle **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Lifecycle getLifecycle() { return lifecycle; } @@ -336,6 +346,7 @@ public V1Container livenessProbe(V1Probe livenessProbe) { * @return livenessProbe **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Probe getLivenessProbe() { return livenessProbe; } @@ -355,6 +366,7 @@ public V1Container name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.") public String getName() { return name; } @@ -382,6 +394,7 @@ public V1Container addPortsItem(V1ContainerPort portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.") public List getPorts() { return ports; } @@ -401,6 +414,7 @@ public V1Container readinessProbe(V1Probe readinessProbe) { * @return readinessProbe **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Probe getReadinessProbe() { return readinessProbe; } @@ -428,6 +442,7 @@ public V1Container addResizePolicyItem(V1ContainerResizePolicy resizePolicyItem) * @return resizePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources resize policy for the container.") public List getResizePolicy() { return resizePolicy; } @@ -447,6 +462,7 @@ public V1Container resources(V1ResourceRequirements resources) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceRequirements getResources() { return resources; } @@ -466,6 +482,7 @@ public V1Container restartPolicy(String restartPolicy) { * @return restartPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.") public String getRestartPolicy() { return restartPolicy; } @@ -485,6 +502,7 @@ public V1Container securityContext(V1SecurityContext securityContext) { * @return securityContext **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecurityContext getSecurityContext() { return securityContext; } @@ -504,6 +522,7 @@ public V1Container startupProbe(V1Probe startupProbe) { * @return startupProbe **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Probe getStartupProbe() { return startupProbe; } @@ -523,6 +542,7 @@ public V1Container stdin(Boolean stdin) { * @return stdin **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.") public Boolean getStdin() { return stdin; } @@ -542,6 +562,7 @@ public V1Container stdinOnce(Boolean stdinOnce) { * @return stdinOnce **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false") public Boolean getStdinOnce() { return stdinOnce; } @@ -561,6 +582,7 @@ public V1Container terminationMessagePath(String terminationMessagePath) { * @return terminationMessagePath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.") public String getTerminationMessagePath() { return terminationMessagePath; } @@ -580,6 +602,7 @@ public V1Container terminationMessagePolicy(String terminationMessagePolicy) { * @return terminationMessagePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.") public String getTerminationMessagePolicy() { return terminationMessagePolicy; } @@ -599,6 +622,7 @@ public V1Container tty(Boolean tty) { * @return tty **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") public Boolean getTty() { return tty; } @@ -626,6 +650,7 @@ public V1Container addVolumeDevicesItem(V1VolumeDevice volumeDevicesItem) { * @return volumeDevices **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeDevices is the list of block devices to be used by the container.") public List getVolumeDevices() { return volumeDevices; } @@ -653,6 +678,7 @@ public V1Container addVolumeMountsItem(V1VolumeMount volumeMountsItem) { * @return volumeMounts **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Pod volumes to mount into the container's filesystem. Cannot be updated.") public List getVolumeMounts() { return volumeMounts; } @@ -672,6 +698,7 @@ public V1Container workingDir(String workingDir) { * @return workingDir **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.") public String getWorkingDir() { return workingDir; } 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 a0a6eb95ba..f059e13974 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * Describe a container image */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Describe a container image") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) @@ -81,6 +84,7 @@ public V1ContainerImage addNamesItem(String namesItem) { * @return names **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]") public List getNames() { return names; } @@ -100,6 +104,7 @@ public V1ContainerImage sizeBytes(Long sizeBytes) { * @return sizeBytes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The size of the image in bytes.") public Long getSizeBytes() { return 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 0cf60d6bbc..fce3acdffe 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ContainerPort represents a network port in a single container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerPort represents a network port in a single container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) @@ -83,6 +86,7 @@ public V1ContainerPort containerPort(Integer containerPort) { * @return containerPort **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.") public Integer getContainerPort() { return containerPort; } @@ -102,6 +106,7 @@ public V1ContainerPort hostIP(String hostIP) { * @return hostIP **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "What host IP to bind the external port to.") public String getHostIP() { return hostIP; } @@ -121,6 +126,7 @@ public V1ContainerPort hostPort(Integer hostPort) { * @return hostPort **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.") public Integer getHostPort() { return hostPort; } @@ -140,6 +146,7 @@ public V1ContainerPort name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.") public String getName() { return name; } @@ -159,6 +166,7 @@ public V1ContainerPort protocol(String protocol) { * @return protocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".") public String getProtocol() { return protocol; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java index 5ada925638..26a70539ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ContainerResizePolicy represents resource resize policy for the container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerResizePolicy represents resource resize policy for the container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) @@ -71,6 +74,7 @@ public V1ContainerResizePolicy resourceName(String resourceName) { * @return resourceName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.") public String getResourceName() { return resourceName; } @@ -90,6 +94,7 @@ public V1ContainerResizePolicy restartPolicy(String restartPolicy) { * @return restartPolicy **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.") public String getRestartPolicy() { return restartPolicy; } 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 2c8dcbe9a8..7026bed5e9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ContainerStateRunning; import io.kubernetes.client.openapi.models.V1ContainerStateTerminated; import io.kubernetes.client.openapi.models.V1ContainerStateWaiting; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) @@ -78,6 +81,7 @@ public V1ContainerState running(V1ContainerStateRunning running) { * @return running **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ContainerStateRunning getRunning() { return running; } @@ -97,6 +101,7 @@ public V1ContainerState terminated(V1ContainerStateTerminated terminated) { * @return terminated **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ContainerStateTerminated getTerminated() { return terminated; } @@ -116,6 +121,7 @@ public V1ContainerState waiting(V1ContainerStateWaiting waiting) { * @return waiting **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ContainerStateWaiting getWaiting() { return waiting; } 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 59bd1ad03b..da7db2b29d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ContainerStateRunning is a running state of a container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerStateRunning is a running state of a container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) @@ -68,6 +71,7 @@ public V1ContainerStateRunning startedAt(OffsetDateTime startedAt) { * @return startedAt **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Time at which the container was last (re-)started") public OffsetDateTime getStartedAt() { return 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 ff0c5deb70..17dcd71539 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ContainerStateTerminated is a terminated state of a container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) @@ -92,6 +95,7 @@ public V1ContainerStateTerminated containerID(String containerID) { * @return containerID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Container's ID in the format '://'") public String getContainerID() { return containerID; } @@ -111,6 +115,7 @@ public V1ContainerStateTerminated exitCode(Integer exitCode) { * @return exitCode **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Exit status from the last termination of the container") public Integer getExitCode() { return exitCode; } @@ -130,6 +135,7 @@ public V1ContainerStateTerminated finishedAt(OffsetDateTime finishedAt) { * @return finishedAt **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Time at which the container last terminated") public OffsetDateTime getFinishedAt() { return finishedAt; } @@ -149,6 +155,7 @@ public V1ContainerStateTerminated message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message regarding the last termination of the container") public String getMessage() { return message; } @@ -168,6 +175,7 @@ public V1ContainerStateTerminated reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "(brief) reason from the last termination of the container") public String getReason() { return reason; } @@ -187,6 +195,7 @@ public V1ContainerStateTerminated signal(Integer signal) { * @return signal **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Signal from the last termination of the container") public Integer getSignal() { return signal; } @@ -206,6 +215,7 @@ public V1ContainerStateTerminated startedAt(OffsetDateTime startedAt) { * @return startedAt **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Time at which previous execution of the container started") public OffsetDateTime getStartedAt() { return 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 0edf7409b5..4325ae0476 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ContainerStateWaiting is a waiting state of a container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -71,6 +74,7 @@ public V1ContainerStateWaiting message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message regarding why the container is not yet running.") public String getMessage() { return message; } @@ -90,6 +94,7 @@ public V1ContainerStateWaiting reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "(brief) reason the container is not yet running.") public String getReason() { return reason; } 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 b78a6b6564..d7a5caa8ff 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +24,8 @@ import io.kubernetes.client.openapi.models.V1ResourceRequirements; import io.kubernetes.client.openapi.models.V1ResourceStatus; import io.kubernetes.client.openapi.models.V1VolumeMountStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -58,7 +60,8 @@ /** * ContainerStatus contains details for the current status of this container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerStatus contains details for the current status of this container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) @@ -137,6 +140,7 @@ public V1ContainerStatus putAllocatedResourcesItem(String key, Quantity allocate * @return allocatedResources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.") public Map getAllocatedResources() { return allocatedResources; } @@ -164,6 +168,7 @@ public V1ContainerStatus addAllocatedResourcesStatusItem(V1ResourceStatus alloca * @return allocatedResourcesStatus **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.") public List getAllocatedResourcesStatus() { return allocatedResourcesStatus; } @@ -183,6 +188,7 @@ public V1ContainerStatus containerID(String containerID) { * @return containerID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").") public String getContainerID() { return containerID; } @@ -202,6 +208,7 @@ public V1ContainerStatus image(String image) { * @return image **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.") public String getImage() { return image; } @@ -221,6 +228,7 @@ public V1ContainerStatus imageID(String imageID) { * @return imageID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.") public String getImageID() { return imageID; } @@ -240,6 +248,7 @@ public V1ContainerStatus lastState(V1ContainerState lastState) { * @return lastState **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ContainerState getLastState() { return lastState; } @@ -259,6 +268,7 @@ public V1ContainerStatus name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.") public String getName() { return name; } @@ -278,6 +288,7 @@ public V1ContainerStatus ready(Boolean ready) { * @return ready **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic.") public Boolean getReady() { return ready; } @@ -297,6 +308,7 @@ public V1ContainerStatus resources(V1ResourceRequirements resources) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceRequirements getResources() { return resources; } @@ -316,6 +328,7 @@ public V1ContainerStatus restartCount(Integer restartCount) { * @return restartCount **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.") public Integer getRestartCount() { return restartCount; } @@ -335,6 +348,7 @@ public V1ContainerStatus started(Boolean started) { * @return started **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.") public Boolean getStarted() { return started; } @@ -354,6 +368,7 @@ public V1ContainerStatus state(V1ContainerState state) { * @return state **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ContainerState getState() { return state; } @@ -373,6 +388,7 @@ public V1ContainerStatus user(V1ContainerUser user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ContainerUser getUser() { return user; } @@ -400,6 +416,7 @@ public V1ContainerStatus addVolumeMountsItem(V1VolumeMountStatus volumeMountsIte * @return volumeMounts **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of volume mounts.") public List getVolumeMounts() { return volumeMounts; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java index c97d210bbf..a63cc53f15 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LinuxContainerUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ContainerUser represents user identity information */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerUser represents user identity information") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ContainerUser { public static final String SERIALIZED_NAME_LINUX = "linux"; @SerializedName(SERIALIZED_NAME_LINUX) @@ -68,6 +71,7 @@ public V1ContainerUser linux(V1LinuxContainerUser linux) { * @return linux **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LinuxContainerUser getLinux() { return linux; } 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 0d6f281cef..dee1edb090 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -84,6 +87,7 @@ public V1ControllerRevision apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -103,6 +107,7 @@ public V1ControllerRevision data(Object data) { * @return data **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Data is the serialized representation of the state.") public Object getData() { return data; } @@ -122,6 +127,7 @@ public V1ControllerRevision kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -141,6 +147,7 @@ public V1ControllerRevision metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -160,6 +167,7 @@ public V1ControllerRevision revision(Long revision) { * @return revision **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Revision indicates the revision of the state represented by Data.") public Long getRevision() { return revision; } 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 489485a742..229e8fbcfa 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ControllerRevision; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ControllerRevisionList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ControllerRevisionList addItemsItem(V1ControllerRevision itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of ControllerRevisions") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ControllerRevisionList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ControllerRevisionList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java index ba9ebe69de..3e10b0d877 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1CronJobSpec; import io.kubernetes.client.openapi.models.V1CronJobStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * CronJob represents the configuration of a single cron job. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CronJob represents the configuration of a single cron job.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1CronJob apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1CronJob kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1CronJob metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1CronJob spec(V1CronJobSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CronJobSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1CronJob status(V1CronJobStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CronJobStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java index 25d72e3b5f..7271617efe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CronJob; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CronJobList is a collection of cron jobs. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CronJobList is a collection of cron jobs.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1CronJobList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1CronJobList addItemsItem(V1CronJob itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of CronJobs.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1CronJobList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1CronJobList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java index dbbf34e78f..9e244dad1a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JobTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * CronJobSpec describes how the job execution will look like and when it will actually run. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CronJobSpec describes how the job execution will look like and when it will actually run.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) @@ -96,6 +99,7 @@ public V1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { * @return concurrencyPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one") public String getConcurrencyPolicy() { return concurrencyPolicy; } @@ -115,6 +119,7 @@ public V1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit) { * @return failedJobsHistoryLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.") public Integer getFailedJobsHistoryLimit() { return failedJobsHistoryLimit; } @@ -134,6 +139,7 @@ public V1CronJobSpec jobTemplate(V1JobTemplateSpec jobTemplate) { * @return jobTemplate **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1JobTemplateSpec getJobTemplate() { return jobTemplate; } @@ -153,6 +159,7 @@ public V1CronJobSpec schedule(String schedule) { * @return schedule **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.") public String getSchedule() { return schedule; } @@ -172,6 +179,7 @@ public V1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) { * @return startingDeadlineSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.") public Long getStartingDeadlineSeconds() { return startingDeadlineSeconds; } @@ -191,6 +199,7 @@ public V1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHistoryLim * @return successfulJobsHistoryLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.") public Integer getSuccessfulJobsHistoryLimit() { return successfulJobsHistoryLimit; } @@ -210,6 +219,7 @@ public V1CronJobSpec suspend(Boolean suspend) { * @return suspend **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.") public Boolean getSuspend() { return suspend; } @@ -229,6 +239,7 @@ public V1CronJobSpec timeZone(String timeZone) { * @return timeZone **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones") public String getTimeZone() { return timeZone; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java index 15cae22b1d..8d83a8f69c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -52,7 +54,8 @@ /** * CronJobStatus represents the current state of a cron job. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CronJobStatus represents the current state of a cron job.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -87,6 +90,7 @@ public V1CronJobStatus addActiveItem(V1ObjectReference activeItem) { * @return active **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of pointers to currently running jobs.") public List getActive() { return active; } @@ -106,6 +110,7 @@ public V1CronJobStatus lastScheduleTime(OffsetDateTime lastScheduleTime) { * @return lastScheduleTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Information when was the last time the job was successfully scheduled.") public OffsetDateTime getLastScheduleTime() { return lastScheduleTime; } @@ -125,6 +130,7 @@ public V1CronJobStatus lastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { * @return lastSuccessfulTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Information when was the last time the job successfully completed.") public OffsetDateTime getLastSuccessfulTime() { return lastSuccessfulTime; } 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 74f2c01073..4966a7877a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -75,6 +78,7 @@ public V1CrossVersionObjectReference apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "apiVersion is the API version of the referent") public String getApiVersion() { return apiVersion; } @@ -94,6 +98,7 @@ public V1CrossVersionObjectReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } @@ -113,6 +118,7 @@ public V1CrossVersionObjectReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } 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 8b6a4163da..0affd92e75 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * CustomResourceColumnDefinition specifies a column for server side printing. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceColumnDefinition specifies a column for server side printing.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -87,6 +90,7 @@ public V1CustomResourceColumnDefinition description(String description) { * @return description **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "description is a human readable description of this column.") public String getDescription() { return description; } @@ -106,6 +110,7 @@ public V1CustomResourceColumnDefinition format(String format) { * @return format **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.") public String getFormat() { return format; } @@ -125,6 +130,7 @@ public V1CustomResourceColumnDefinition jsonPath(String jsonPath) { * @return jsonPath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.") public String getJsonPath() { return jsonPath; } @@ -144,6 +150,7 @@ public V1CustomResourceColumnDefinition name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is a human readable name for the column.") public String getName() { return name; } @@ -163,6 +170,7 @@ public V1CustomResourceColumnDefinition priority(Integer priority) { * @return priority **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.") public Integer getPriority() { return priority; } @@ -182,6 +190,7 @@ public V1CustomResourceColumnDefinition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.") public String getType() { return type; } 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 8ffa1f7d39..aef004d730 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1WebhookConversion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * CustomResourceConversion describes how to convert different versions of a CR. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceConversion describes how to convert different versions of a CR.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) @@ -72,6 +75,7 @@ public V1CustomResourceConversion strategy(String strategy) { * @return strategy **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.") public String getStrategy() { return strategy; } @@ -91,6 +95,7 @@ public V1CustomResourceConversion webhook(V1WebhookConversion webhook) { * @return webhook **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1WebhookConversion getWebhook() { return webhook; } 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 cdfc97fd02..09452a7539 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1CustomResourceDefinition apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1CustomResourceDefinition kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1CustomResourceDefinition metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1CustomResourceDefinition spec(V1CustomResourceDefinitionSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1CustomResourceDefinitionSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1CustomResourceDefinition status(V1CustomResourceDefinitionStatus status * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CustomResourceDefinitionStatus getStatus() { return status; } 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 8365ad0465..76779d244a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceDefinitionCondition contains details for the current condition of this pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1CustomResourceDefinitionCondition lastTransitionTime(OffsetDateTime las * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastTransitionTime last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1CustomResourceDefinitionCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "message is a human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1CustomResourceDefinitionCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reason is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1CustomResourceDefinitionCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "status is the status of the condition. Can be True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1CustomResourceDefinitionCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type is the type of the condition. Types include Established, NamesAccepted and Terminating.") public String getType() { return type; } 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 f1085016c8..2447d187fe 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CustomResourceDefinition; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1CustomResourceDefinitionList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1CustomResourceDefinitionList addItemsItem(V1CustomResourceDefinition it * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items list individual CustomResourceDefinition objects") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1CustomResourceDefinitionList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1CustomResourceDefinitionList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 a54fe739dc..8cb258d972 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) @@ -97,6 +100,7 @@ public V1CustomResourceDefinitionNames addCategoriesItem(String categoriesItem) * @return categories **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.") public List getCategories() { return categories; } @@ -116,6 +120,7 @@ public V1CustomResourceDefinitionNames kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.") public String getKind() { return kind; } @@ -135,6 +140,7 @@ public V1CustomResourceDefinitionNames listKind(String listKind) { * @return listKind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".") public String getListKind() { return listKind; } @@ -154,6 +160,7 @@ public V1CustomResourceDefinitionNames plural(String plural) { * @return plural **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.") public String getPlural() { return plural; } @@ -181,6 +188,7 @@ public V1CustomResourceDefinitionNames addShortNamesItem(String shortNamesItem) * @return shortNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.") public List getShortNames() { return shortNames; } @@ -200,6 +208,7 @@ public V1CustomResourceDefinitionNames singular(String singular) { * @return singular **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.") public String getSingular() { return singular; } 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 8b401dfdff..acb275a009 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1CustomResourceConversion; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; @SerializedName(SERIALIZED_NAME_CONVERSION) @@ -92,6 +95,7 @@ public V1CustomResourceDefinitionSpec conversion(V1CustomResourceConversion conv * @return conversion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CustomResourceConversion getConversion() { return conversion; } @@ -111,6 +115,7 @@ public V1CustomResourceDefinitionSpec group(String group) { * @return group **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).") public String getGroup() { return group; } @@ -130,6 +135,7 @@ public V1CustomResourceDefinitionSpec names(V1CustomResourceDefinitionNames name * @return names **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1CustomResourceDefinitionNames getNames() { return names; } @@ -149,6 +155,7 @@ public V1CustomResourceDefinitionSpec preserveUnknownFields(Boolean preserveUnkn * @return preserveUnknownFields **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.") public Boolean getPreserveUnknownFields() { return preserveUnknownFields; } @@ -168,6 +175,7 @@ public V1CustomResourceDefinitionSpec scope(String scope) { * @return scope **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.") public String getScope() { return scope; } @@ -195,6 +203,7 @@ public V1CustomResourceDefinitionSpec addVersionsItem(V1CustomResourceDefinition * @return versions **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.") public List getVersions() { return versions; } 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 abdc9c8061..b3a549dc54 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition; import io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) @@ -79,6 +82,7 @@ public V1CustomResourceDefinitionStatus acceptedNames(V1CustomResourceDefinition * @return acceptedNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CustomResourceDefinitionNames getAcceptedNames() { return acceptedNames; } @@ -106,6 +110,7 @@ public V1CustomResourceDefinitionStatus addConditionsItem(V1CustomResourceDefini * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions indicate state for particular aspects of a CustomResourceDefinition") public List getConditions() { return conditions; } @@ -133,6 +138,7 @@ public V1CustomResourceDefinitionStatus addStoredVersionsItem(String storedVersi * @return storedVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.") public List getStoredVersions() { return storedVersions; } 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 0b6bf05e2f..a13ad440e8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1CustomResourceSubresources; import io.kubernetes.client.openapi.models.V1CustomResourceValidation; import io.kubernetes.client.openapi.models.V1SelectableField; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * CustomResourceDefinitionVersion describes a version for CRD. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) @@ -113,6 +116,7 @@ public V1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem(V1Custo * @return additionalPrinterColumns **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.") public List getAdditionalPrinterColumns() { return additionalPrinterColumns; } @@ -132,6 +136,7 @@ public V1CustomResourceDefinitionVersion deprecated(Boolean deprecated) { * @return deprecated **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.") public Boolean getDeprecated() { return deprecated; } @@ -151,6 +156,7 @@ public V1CustomResourceDefinitionVersion deprecationWarning(String deprecationWa * @return deprecationWarning **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.") public String getDeprecationWarning() { return deprecationWarning; } @@ -170,6 +176,7 @@ public V1CustomResourceDefinitionVersion name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true.") public String getName() { return name; } @@ -189,6 +196,7 @@ public V1CustomResourceDefinitionVersion schema(V1CustomResourceValidation schem * @return schema **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CustomResourceValidation getSchema() { return schema; } @@ -216,6 +224,7 @@ public V1CustomResourceDefinitionVersion addSelectableFieldsItem(V1SelectableFie * @return selectableFields **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors") public List getSelectableFields() { return selectableFields; } @@ -235,6 +244,7 @@ public V1CustomResourceDefinitionVersion served(Boolean served) { * @return served **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "served is a flag enabling/disabling this version from being served via REST APIs") public Boolean getServed() { return served; } @@ -254,6 +264,7 @@ public V1CustomResourceDefinitionVersion storage(Boolean storage) { * @return storage **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.") public Boolean getStorage() { return storage; } @@ -273,6 +284,7 @@ public V1CustomResourceDefinitionVersion subresources(V1CustomResourceSubresourc * @return subresources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CustomResourceSubresources getSubresources() { return subresources; } 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 c5fec614cc..f77975b183 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) @@ -75,6 +78,7 @@ public V1CustomResourceSubresourceScale labelSelectorPath(String labelSelectorPa * @return labelSelectorPath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.") public String getLabelSelectorPath() { return labelSelectorPath; } @@ -94,6 +98,7 @@ public V1CustomResourceSubresourceScale specReplicasPath(String specReplicasPath * @return specReplicasPath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.") public String getSpecReplicasPath() { return specReplicasPath; } @@ -113,6 +118,7 @@ public V1CustomResourceSubresourceScale statusReplicasPath(String statusReplicas * @return statusReplicasPath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.") public String getStatusReplicasPath() { return statusReplicasPath; } 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 c108a8e88a..9bbde51c98 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceSubresources defines the status and scale subresources for CustomResources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; @SerializedName(SERIALIZED_NAME_SCALE) @@ -72,6 +75,7 @@ public V1CustomResourceSubresources scale(V1CustomResourceSubresourceScale scale * @return scale **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CustomResourceSubresourceScale getScale() { return scale; } @@ -91,6 +95,7 @@ public V1CustomResourceSubresources status(Object status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.") public Object getStatus() { return status; } 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 a7765dc79c..44a11145b1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JSONSchemaProps; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * CustomResourceValidation is a list of validation methods for CustomResources. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CustomResourceValidation is a list of validation methods for CustomResources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; @SerializedName(SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA) @@ -68,6 +71,7 @@ public V1CustomResourceValidation openAPIV3Schema(V1JSONSchemaProps openAPIV3Sch * @return openAPIV3Schema **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1JSONSchemaProps getOpenAPIV3Schema() { return 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 2f1b0f09c7..a5fa820549 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * DaemonEndpoint contains information about a single Daemon endpoint. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; @SerializedName(SERIALIZED_NAME_PORT) @@ -67,6 +70,7 @@ public V1DaemonEndpoint port(Integer port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Port number of the given endpoint.") public Integer getPort() { return 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 ea84745f1d..52c92080a9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1DaemonSetSpec; import io.kubernetes.client.openapi.models.V1DaemonSetStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DaemonSet represents the configuration of a daemon set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DaemonSet represents the configuration of a daemon set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1DaemonSet apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1DaemonSet kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1DaemonSet metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1DaemonSet spec(V1DaemonSetSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DaemonSetSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1DaemonSet status(V1DaemonSetStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DaemonSetStatus getStatus() { return status; } 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 f18fa04db6..c6582e6fea 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1DaemonSetCondition lastTransitionTime(OffsetDateTime lastTransitionTime * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1DaemonSetCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1DaemonSetCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1DaemonSetCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1DaemonSetCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of DaemonSet condition.") public String getType() { return type; } 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 a27533cace..3e58d01d1d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DaemonSet; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * DaemonSetList is a collection of daemon sets. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DaemonSetList is a collection of daemon sets.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1DaemonSetList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1DaemonSetList addItemsItem(V1DaemonSet itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of daemon sets.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1DaemonSetList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1DaemonSetList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 9123064799..052e0e3d17 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DaemonSetSpec is the specification of a daemon set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -86,6 +89,7 @@ public V1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { * @return minReadySeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).") public Integer getMinReadySeconds() { return minReadySeconds; } @@ -105,6 +109,7 @@ public V1DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * @return revisionHistoryLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } @@ -124,6 +129,7 @@ public V1DaemonSetSpec selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } @@ -143,6 +149,7 @@ public V1DaemonSetSpec template(V1PodTemplateSpec template) { * @return template **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } @@ -162,6 +169,7 @@ public V1DaemonSetSpec updateStrategy(V1DaemonSetUpdateStrategy updateStrategy) * @return updateStrategy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DaemonSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } 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 33c365d7b8..0e06f35dfe 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DaemonSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DaemonSetStatus represents the current status of a daemon set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) @@ -106,6 +109,7 @@ public V1DaemonSetStatus collisionCount(Integer collisionCount) { * @return collisionCount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") public Integer getCollisionCount() { return collisionCount; } @@ -133,6 +137,7 @@ public V1DaemonSetStatus addConditionsItem(V1DaemonSetCondition conditionsItem) * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents the latest available observations of a DaemonSet's current state.") public List getConditions() { return conditions; } @@ -152,6 +157,7 @@ public V1DaemonSetStatus currentNumberScheduled(Integer currentNumberScheduled) * @return currentNumberScheduled **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") public Integer getCurrentNumberScheduled() { return currentNumberScheduled; } @@ -171,6 +177,7 @@ public V1DaemonSetStatus desiredNumberScheduled(Integer desiredNumberScheduled) * @return desiredNumberScheduled **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") public Integer getDesiredNumberScheduled() { return desiredNumberScheduled; } @@ -190,6 +197,7 @@ public V1DaemonSetStatus numberAvailable(Integer numberAvailable) { * @return numberAvailable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)") public Integer getNumberAvailable() { return numberAvailable; } @@ -209,6 +217,7 @@ public V1DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { * @return numberMisscheduled **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") public Integer getNumberMisscheduled() { return numberMisscheduled; } @@ -228,6 +237,7 @@ public V1DaemonSetStatus numberReady(Integer numberReady) { * @return numberReady **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.") public Integer getNumberReady() { return numberReady; } @@ -247,6 +257,7 @@ public V1DaemonSetStatus numberUnavailable(Integer numberUnavailable) { * @return numberUnavailable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)") public Integer getNumberUnavailable() { return numberUnavailable; } @@ -266,6 +277,7 @@ public V1DaemonSetStatus observedGeneration(Long observedGeneration) { * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The most recent generation observed by the daemon set controller.") public Long getObservedGeneration() { return observedGeneration; } @@ -285,6 +297,7 @@ public V1DaemonSetStatus updatedNumberScheduled(Integer updatedNumberScheduled) * @return updatedNumberScheduled **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The total number of nodes that are running updated daemon pod") public Integer getUpdatedNumberScheduled() { return updatedNumberScheduled; } 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 d67f27a73e..26be33dd3e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) @@ -72,6 +75,7 @@ public V1DaemonSetUpdateStrategy rollingUpdate(V1RollingUpdateDaemonSet rollingU * @return rollingUpdate **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1RollingUpdateDaemonSet getRollingUpdate() { return rollingUpdate; } @@ -91,6 +95,7 @@ public V1DaemonSetUpdateStrategy type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.") public String getType() { return type; } 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 72ac36ef8a..97ec1fe64c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Preconditions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DeleteOptions may be provided when deleting an API object. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeleteOptions may be provided when deleting an API object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -94,6 +97,7 @@ public V1DeleteOptions apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -121,6 +125,7 @@ public V1DeleteOptions addDryRunItem(String dryRunItem) { * @return dryRun **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed") public List getDryRun() { return dryRun; } @@ -140,6 +145,7 @@ public V1DeleteOptions gracePeriodSeconds(Long gracePeriodSeconds) { * @return gracePeriodSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.") public Long getGracePeriodSeconds() { return gracePeriodSeconds; } @@ -159,6 +165,7 @@ public V1DeleteOptions kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -178,6 +185,7 @@ public V1DeleteOptions orphanDependents(Boolean orphanDependents) { * @return orphanDependents **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.") public Boolean getOrphanDependents() { return orphanDependents; } @@ -197,6 +205,7 @@ public V1DeleteOptions preconditions(V1Preconditions preconditions) { * @return preconditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Preconditions getPreconditions() { return preconditions; } @@ -216,6 +225,7 @@ public V1DeleteOptions propagationPolicy(String propagationPolicy) { * @return propagationPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.") public String getPropagationPolicy() { return propagationPolicy; } 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 97ccae593a..3f141d686f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1DeploymentSpec; import io.kubernetes.client.openapi.models.V1DeploymentStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Deployment enables declarative updates for Pods and ReplicaSets. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Deployment apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Deployment kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Deployment metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Deployment spec(V1DeploymentSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DeploymentSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Deployment status(V1DeploymentStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DeploymentStatus getStatus() { return status; } 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 4d125889c1..bc7afc3fef 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * DeploymentCondition describes the state of a deployment at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -88,6 +91,7 @@ public V1DeploymentCondition lastTransitionTime(OffsetDateTime lastTransitionTim * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -107,6 +111,7 @@ public V1DeploymentCondition lastUpdateTime(OffsetDateTime lastUpdateTime) { * @return lastUpdateTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The last time this condition was updated.") public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } @@ -126,6 +131,7 @@ public V1DeploymentCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } @@ -145,6 +151,7 @@ public V1DeploymentCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1DeploymentCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1DeploymentCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of deployment condition.") public String getType() { return type; } 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 682289b17d..94b56f7760 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Deployment; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * DeploymentList is a list of Deployments. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeploymentList is a list of Deployments.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1DeploymentList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1DeploymentList addItemsItem(V1Deployment itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of Deployments.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1DeploymentList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1DeploymentList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 31f7083908..62aacefe52 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1DeploymentStrategy; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DeploymentSpec is the specification of the desired behavior of the Deployment. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -98,6 +101,7 @@ public V1DeploymentSpec minReadySeconds(Integer minReadySeconds) { * @return minReadySeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } @@ -117,6 +121,7 @@ public V1DeploymentSpec paused(Boolean paused) { * @return paused **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Indicates that the deployment is paused.") public Boolean getPaused() { return paused; } @@ -136,6 +141,7 @@ public V1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) * @return progressDeadlineSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.") public Integer getProgressDeadlineSeconds() { return progressDeadlineSeconds; } @@ -155,6 +161,7 @@ public V1DeploymentSpec replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") public Integer getReplicas() { return replicas; } @@ -174,6 +181,7 @@ public V1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * @return revisionHistoryLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } @@ -193,6 +201,7 @@ public V1DeploymentSpec selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } @@ -212,6 +221,7 @@ public V1DeploymentSpec strategy(V1DeploymentStrategy strategy) { * @return strategy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DeploymentStrategy getStrategy() { return strategy; } @@ -231,6 +241,7 @@ public V1DeploymentSpec template(V1PodTemplateSpec template) { * @return template **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } 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 eb6919c611..1a3f300992 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DeploymentCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DeploymentStatus is the most recently observed status of the Deployment. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -98,6 +101,7 @@ public V1DeploymentStatus availableReplicas(Integer availableReplicas) { * @return availableReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") public Integer getAvailableReplicas() { return availableReplicas; } @@ -117,6 +121,7 @@ public V1DeploymentStatus collisionCount(Integer collisionCount) { * @return collisionCount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.") public Integer getCollisionCount() { return collisionCount; } @@ -144,6 +149,7 @@ public V1DeploymentStatus addConditionsItem(V1DeploymentCondition conditionsItem * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents the latest available observations of a deployment's current state.") public List getConditions() { return conditions; } @@ -163,6 +169,7 @@ public V1DeploymentStatus observedGeneration(Long observedGeneration) { * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The generation observed by the deployment controller.") public Long getObservedGeneration() { return observedGeneration; } @@ -182,6 +189,7 @@ public V1DeploymentStatus readyReplicas(Integer readyReplicas) { * @return readyReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; } @@ -201,6 +209,7 @@ public V1DeploymentStatus replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") public Integer getReplicas() { return replicas; } @@ -220,6 +229,7 @@ public V1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { * @return unavailableReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.") public Integer getUnavailableReplicas() { return unavailableReplicas; } @@ -239,6 +249,7 @@ public V1DeploymentStatus updatedReplicas(Integer updatedReplicas) { * @return updatedReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") public Integer getUpdatedReplicas() { return updatedReplicas; } 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 06579808d6..3c17ce10f7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1RollingUpdateDeployment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * DeploymentStrategy describes how to replace existing pods with new ones. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) @@ -72,6 +75,7 @@ public V1DeploymentStrategy rollingUpdate(V1RollingUpdateDeployment rollingUpdat * @return rollingUpdate **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1RollingUpdateDeployment getRollingUpdate() { return rollingUpdate; } @@ -91,6 +95,7 @@ public V1DeploymentStrategy type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.") public String getType() { return type; } 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 8dc16d4e44..2b1a936890 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -78,6 +81,7 @@ public V1DownwardAPIProjection addItemsItem(V1DownwardAPIVolumeFile itemsItem) { * @return items **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Items is a list of DownwardAPIVolume file") public List getItems() { return items; } 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 942b3fb3bb..fc3005bdb5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectFieldSelector; import io.kubernetes.client.openapi.models.V1ResourceFieldSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * DownwardAPIVolumeFile represents information to create the file containing the pod field */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DownwardAPIVolumeFile represents information to create the file containing the pod field") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -81,6 +84,7 @@ public V1DownwardAPIVolumeFile fieldRef(V1ObjectFieldSelector fieldRef) { * @return fieldRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectFieldSelector getFieldRef() { return fieldRef; } @@ -100,6 +104,7 @@ public V1DownwardAPIVolumeFile mode(Integer mode) { * @return mode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getMode() { return mode; } @@ -119,6 +124,7 @@ public V1DownwardAPIVolumeFile path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'") public String getPath() { return path; } @@ -138,6 +144,7 @@ public V1DownwardAPIVolumeFile resourceFieldRef(V1ResourceFieldSelector resource * @return resourceFieldRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } 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 988bd68ae2..875d835532 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -74,6 +77,7 @@ public V1DownwardAPIVolumeSource defaultMode(Integer defaultMode) { * @return defaultMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } @@ -101,6 +105,7 @@ public V1DownwardAPIVolumeSource addItemsItem(V1DownwardAPIVolumeFile itemsItem) * @return items **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Items is a list of downward API volume file") public List getItems() { return items; } 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 cecf17d49e..b23db7e8c4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; @SerializedName(SERIALIZED_NAME_MEDIUM) @@ -72,6 +75,7 @@ public V1EmptyDirVolumeSource medium(String medium) { * @return medium **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") public String getMedium() { return medium; } @@ -91,6 +95,7 @@ public V1EmptyDirVolumeSource sizeLimit(Quantity sizeLimit) { * @return sizeLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getSizeLimit() { return sizeLimit; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java index 10e8152958..638d05c722 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1EndpointConditions; import io.kubernetes.client.openapi.models.V1EndpointHints; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -55,7 +57,8 @@ /** * Endpoint represents a single logical \"backend\" implementing a service. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -110,6 +113,7 @@ public V1Endpoint addAddressesItem(String addressesItem) { * @return addresses **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267") public List getAddresses() { return addresses; } @@ -129,6 +133,7 @@ public V1Endpoint conditions(V1EndpointConditions conditions) { * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1EndpointConditions getConditions() { return conditions; } @@ -156,6 +161,7 @@ public V1Endpoint putDeprecatedTopologyItem(String key, String deprecatedTopolog * @return deprecatedTopology **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.") public Map getDeprecatedTopology() { return deprecatedTopology; } @@ -175,6 +181,7 @@ public V1Endpoint hints(V1EndpointHints hints) { * @return hints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1EndpointHints getHints() { return hints; } @@ -194,6 +201,7 @@ public V1Endpoint hostname(String hostname) { * @return hostname **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.") public String getHostname() { return hostname; } @@ -213,6 +221,7 @@ public V1Endpoint nodeName(String nodeName) { * @return nodeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.") public String getNodeName() { return nodeName; } @@ -232,6 +241,7 @@ public V1Endpoint targetRef(V1ObjectReference targetRef) { * @return targetRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectReference getTargetRef() { return targetRef; } @@ -251,6 +261,7 @@ public V1Endpoint zone(String zone) { * @return zone **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "zone is the name of the Zone this endpoint exists in.") public String getZone() { return zone; } 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 4e768268e4..50cf09d5bc 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * EndpointAddress is a tuple that describes single IP address. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointAddress is a tuple that describes single IP address.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -80,6 +83,7 @@ public V1EndpointAddress hostname(String hostname) { * @return hostname **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The Hostname of this endpoint") public String getHostname() { return hostname; } @@ -99,6 +103,7 @@ public V1EndpointAddress ip(String ip) { * @return ip **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).") public String getIp() { return ip; } @@ -118,6 +123,7 @@ public V1EndpointAddress nodeName(String nodeName) { * @return nodeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.") public String getNodeName() { return nodeName; } @@ -137,6 +143,7 @@ public V1EndpointAddress targetRef(V1ObjectReference targetRef) { * @return targetRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectReference getTargetRef() { return targetRef; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java index 358a39a63e..5d673c91ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * EndpointConditions represents the current condition of an endpoint. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) @@ -75,6 +78,7 @@ public V1EndpointConditions ready(Boolean ready) { * @return ready **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.") public Boolean getReady() { return ready; } @@ -94,6 +98,7 @@ public V1EndpointConditions serving(Boolean serving) { * @return serving **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.") public Boolean getServing() { return serving; } @@ -113,6 +118,7 @@ public V1EndpointConditions terminating(Boolean terminating) { * @return terminating **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.") public Boolean getTerminating() { return terminating; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java index fad9fc5f19..d32d4e2d34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ForZone; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * EndpointHints provides hints describing how an endpoint should be consumed. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointHints provides hints describing how an endpoint should be consumed.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_ZONES = "forZones"; @SerializedName(SERIALIZED_NAME_FOR_ZONES) @@ -78,6 +81,7 @@ public V1EndpointHints addForZonesItem(V1ForZone forZonesItem) { * @return forZones **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.") public List getForZones() { return forZones; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java index a96c336c83..169349e798 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort; import io.kubernetes.client.openapi.models.V1Endpoint; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) @@ -92,6 +95,7 @@ public V1EndpointSlice addressType(String addressType) { * @return addressType **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.") public String getAddressType() { return addressType; } @@ -111,6 +115,7 @@ public V1EndpointSlice apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -138,6 +143,7 @@ public V1EndpointSlice addEndpointsItem(V1Endpoint endpointsItem) { * @return endpoints **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.") public List getEndpoints() { return endpoints; } @@ -157,6 +163,7 @@ public V1EndpointSlice kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -176,6 +183,7 @@ public V1EndpointSlice metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -203,6 +211,7 @@ public V1EndpointSlice addPortsItem(DiscoveryV1EndpointPort portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.") public List getPorts() { return ports; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java index 927cebdd4b..a45233ed98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1EndpointSlice; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * EndpointSliceList represents a list of endpoint slices */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointSliceList represents a list of endpoint slices") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1EndpointSliceList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1EndpointSliceList addItemsItem(V1EndpointSlice itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of endpoint slices") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1EndpointSliceList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1EndpointSliceList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 227bc37e5b..c32db69770 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.CoreV1EndpointPort; import io.kubernetes.client.openapi.models.V1EndpointAddress; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * 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 ] */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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 ]") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -87,6 +90,7 @@ public V1EndpointSubset addAddressesItem(V1EndpointAddress addressesItem) { * @return addresses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.") public List getAddresses() { return addresses; } @@ -114,6 +118,7 @@ public V1EndpointSubset addNotReadyAddressesItem(V1EndpointAddress notReadyAddre * @return notReadyAddresses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.") public List getNotReadyAddresses() { return notReadyAddresses; } @@ -141,6 +146,7 @@ public V1EndpointSubset addPortsItem(CoreV1EndpointPort portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Port numbers available on the related IP addresses.") public List getPorts() { return ports; } 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 3436944f56..4b1b7b11a9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1EndpointSubset; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * 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}] }, ] */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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}] }, ]") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1Endpoints apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -102,6 +106,7 @@ public V1Endpoints kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -121,6 +126,7 @@ public V1Endpoints metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -148,6 +154,7 @@ public V1Endpoints addSubsetsItem(V1EndpointSubset subsetsItem) { * @return subsets **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.") public List getSubsets() { return subsets; } 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 c19e1eed0f..c484977270 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Endpoints; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * EndpointsList is a list of endpoints. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EndpointsList is a list of endpoints.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1EndpointsList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1EndpointsList addItemsItem(V1Endpoints itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of endpoints.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1EndpointsList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1EndpointsList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 b8e12bce03..e53f2c02b3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ConfigMapEnvSource; import io.kubernetes.client.openapi.models.V1SecretEnvSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * EnvFromSource represents the source of a set of ConfigMaps */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) @@ -77,6 +80,7 @@ public V1EnvFromSource configMapRef(V1ConfigMapEnvSource configMapRef) { * @return configMapRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ConfigMapEnvSource getConfigMapRef() { return configMapRef; } @@ -96,6 +100,7 @@ public V1EnvFromSource prefix(String prefix) { * @return prefix **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.") public String getPrefix() { return prefix; } @@ -115,6 +120,7 @@ public V1EnvFromSource secretRef(V1SecretEnvSource secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretEnvSource getSecretRef() { return secretRef; } 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 0d71331a44..aef777d378 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1EnvVarSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * EnvVar represents an environment variable present in a Container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EnvVar represents an environment variable present in a Container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -76,6 +79,7 @@ public V1EnvVar name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the environment variable. Must be a C_IDENTIFIER.") public String getName() { return name; } @@ -95,6 +99,7 @@ public V1EnvVar value(String value) { * @return value **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".") public String getValue() { return value; } @@ -114,6 +119,7 @@ public V1EnvVar valueFrom(V1EnvVarSource valueFrom) { * @return valueFrom **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1EnvVarSource getValueFrom() { return valueFrom; } 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 bb66511c2f..4e09f1c41f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1ObjectFieldSelector; import io.kubernetes.client.openapi.models.V1ResourceFieldSelector; import io.kubernetes.client.openapi.models.V1SecretKeySelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * EnvVarSource represents a source for the value of an EnvVar. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) @@ -83,6 +86,7 @@ public V1EnvVarSource configMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { * @return configMapKeyRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ConfigMapKeySelector getConfigMapKeyRef() { return configMapKeyRef; } @@ -102,6 +106,7 @@ public V1EnvVarSource fieldRef(V1ObjectFieldSelector fieldRef) { * @return fieldRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectFieldSelector getFieldRef() { return fieldRef; } @@ -121,6 +126,7 @@ public V1EnvVarSource resourceFieldRef(V1ResourceFieldSelector resourceFieldRef) * @return resourceFieldRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } @@ -140,6 +146,7 @@ public V1EnvVarSource secretKeyRef(V1SecretKeySelector secretKeyRef) { * @return secretKeyRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretKeySelector getSecretKeyRef() { return secretKeyRef; } 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 ae371b42ed..7bdd46a028 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +28,8 @@ import io.kubernetes.client.openapi.models.V1SecurityContext; import io.kubernetes.client.openapi.models.V1VolumeDevice; import io.kubernetes.client.openapi.models.V1VolumeMount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -60,7 +62,8 @@ /** * An EphemeralContainer is a temporary container that you may add 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. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "An EphemeralContainer is a temporary container that you may add 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. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -183,6 +186,7 @@ public V1EphemeralContainer addArgsItem(String argsItem) { * @return args **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getArgs() { return args; } @@ -210,6 +214,7 @@ public V1EphemeralContainer addCommandItem(String commandItem) { * @return command **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") public List getCommand() { return command; } @@ -237,6 +242,7 @@ public V1EphemeralContainer addEnvItem(V1EnvVar envItem) { * @return env **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of environment variables to set in the container. Cannot be updated.") public List getEnv() { return env; } @@ -264,6 +270,7 @@ public V1EphemeralContainer addEnvFromItem(V1EnvFromSource envFromItem) { * @return envFrom **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") public List getEnvFrom() { return envFrom; } @@ -283,6 +290,7 @@ public V1EphemeralContainer image(String image) { * @return image **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images") public String getImage() { return image; } @@ -302,6 +310,7 @@ public V1EphemeralContainer imagePullPolicy(String imagePullPolicy) { * @return imagePullPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images") public String getImagePullPolicy() { return imagePullPolicy; } @@ -321,6 +330,7 @@ public V1EphemeralContainer lifecycle(V1Lifecycle lifecycle) { * @return lifecycle **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Lifecycle getLifecycle() { return lifecycle; } @@ -340,6 +350,7 @@ public V1EphemeralContainer livenessProbe(V1Probe livenessProbe) { * @return livenessProbe **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Probe getLivenessProbe() { return livenessProbe; } @@ -359,6 +370,7 @@ public V1EphemeralContainer name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.") public String getName() { return name; } @@ -386,6 +398,7 @@ public V1EphemeralContainer addPortsItem(V1ContainerPort portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Ports are not allowed for ephemeral containers.") public List getPorts() { return ports; } @@ -405,6 +418,7 @@ public V1EphemeralContainer readinessProbe(V1Probe readinessProbe) { * @return readinessProbe **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Probe getReadinessProbe() { return readinessProbe; } @@ -432,6 +446,7 @@ public V1EphemeralContainer addResizePolicyItem(V1ContainerResizePolicy resizePo * @return resizePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources resize policy for the container.") public List getResizePolicy() { return resizePolicy; } @@ -451,6 +466,7 @@ public V1EphemeralContainer resources(V1ResourceRequirements resources) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceRequirements getResources() { return resources; } @@ -470,6 +486,7 @@ public V1EphemeralContainer restartPolicy(String restartPolicy) { * @return restartPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.") public String getRestartPolicy() { return restartPolicy; } @@ -489,6 +506,7 @@ public V1EphemeralContainer securityContext(V1SecurityContext securityContext) { * @return securityContext **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecurityContext getSecurityContext() { return securityContext; } @@ -508,6 +526,7 @@ public V1EphemeralContainer startupProbe(V1Probe startupProbe) { * @return startupProbe **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Probe getStartupProbe() { return startupProbe; } @@ -527,6 +546,7 @@ public V1EphemeralContainer stdin(Boolean stdin) { * @return stdin **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.") public Boolean getStdin() { return stdin; } @@ -546,6 +566,7 @@ public V1EphemeralContainer stdinOnce(Boolean stdinOnce) { * @return stdinOnce **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false") public Boolean getStdinOnce() { return stdinOnce; } @@ -565,6 +586,7 @@ public V1EphemeralContainer targetContainerName(String targetContainerName) { * @return targetContainerName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.") public String getTargetContainerName() { return targetContainerName; } @@ -584,6 +606,7 @@ public V1EphemeralContainer terminationMessagePath(String terminationMessagePath * @return terminationMessagePath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.") public String getTerminationMessagePath() { return terminationMessagePath; } @@ -603,6 +626,7 @@ public V1EphemeralContainer terminationMessagePolicy(String terminationMessagePo * @return terminationMessagePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.") public String getTerminationMessagePolicy() { return terminationMessagePolicy; } @@ -622,6 +646,7 @@ public V1EphemeralContainer tty(Boolean tty) { * @return tty **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") public Boolean getTty() { return tty; } @@ -649,6 +674,7 @@ public V1EphemeralContainer addVolumeDevicesItem(V1VolumeDevice volumeDevicesIte * @return volumeDevices **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeDevices is the list of block devices to be used by the container.") public List getVolumeDevices() { return volumeDevices; } @@ -676,6 +702,7 @@ public V1EphemeralContainer addVolumeMountsItem(V1VolumeMount volumeMountsItem) * @return volumeMounts **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.") public List getVolumeMounts() { return volumeMounts; } @@ -695,6 +722,7 @@ public V1EphemeralContainer workingDir(String workingDir) { * @return workingDir **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.") public String getWorkingDir() { return workingDir; } 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 d2e0c631b0..faef83ffbc 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Represents an ephemeral volume that is handled by a normal storage driver. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents an ephemeral volume that is handled by a normal storage driver.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) @@ -68,6 +71,7 @@ public V1EphemeralVolumeSource volumeClaimTemplate(V1PersistentVolumeClaimTempla * @return volumeClaimTemplate **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PersistentVolumeClaimTemplate getVolumeClaimTemplate() { return volumeClaimTemplate; } 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 9c7fcd4740..40d147c23b 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * EventSource contains information for an event. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "EventSource contains information for an event.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; @SerializedName(SERIALIZED_NAME_COMPONENT) @@ -71,6 +74,7 @@ public V1EventSource component(String component) { * @return component **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Component from which the event is generated.") public String getComponent() { return component; } @@ -90,6 +94,7 @@ public V1EventSource host(String host) { * @return host **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Node name on which the event is generated.") public String getHost() { return host; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java index 7f97bcac1e..ca93077ca2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DeleteOptions; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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/<pod name>/evictions. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1Eviction apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1Eviction deleteOptions(V1DeleteOptions deleteOptions) { * @return deleteOptions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DeleteOptions getDeleteOptions() { return deleteOptions; } @@ -119,6 +124,7 @@ public V1Eviction kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -138,6 +144,7 @@ public V1Eviction metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } 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 fea789388f..a35dc1b322 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ExecAction describes a \"run in container\" action. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExecAction describes a \"run in container\" action.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) @@ -77,6 +80,7 @@ public V1ExecAction addCommandItem(String commandItem) { * @return command **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.") public List getCommand() { return command; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java index 40e5b2cca5..0cea40ba4d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ExemptPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) @@ -71,6 +74,7 @@ public V1ExemptPriorityLevelConfiguration lendablePercent(Integer lendablePercen * @return lendablePercent **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )") public Integer getLendablePercent() { return lendablePercent; } @@ -90,6 +94,7 @@ public V1ExemptPriorityLevelConfiguration nominalConcurrencyShares(Integer nomin * @return nominalConcurrencyShares **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.") public Integer getNominalConcurrencyShares() { return nominalConcurrencyShares; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java index 6125fe6dcd..f38576f2ed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ExpressionWarning is a warning information that targets a specific expression. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -71,6 +74,7 @@ public V1ExpressionWarning fieldRef(String fieldRef) { * @return fieldRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") public String getFieldRef() { return fieldRef; } @@ -90,6 +94,7 @@ public V1ExpressionWarning warning(String warning) { * @return warning **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") public String getWarning() { return warning; } 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 4d20960af6..f3d2e95264 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ExternalDocumentation allows referencing an external resource for extended documentation. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExternalDocumentation allows referencing an external resource for extended documentation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -71,6 +74,7 @@ public V1ExternalDocumentation description(String description) { * @return description **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getDescription() { return description; } @@ -90,6 +94,7 @@ public V1ExternalDocumentation url(String url) { * @return url **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getUrl() { return url; } 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 66e86e74b3..9a9f4dce50 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -85,6 +88,7 @@ public V1FCVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } @@ -104,6 +108,7 @@ public V1FCVolumeSource lun(Integer lun) { * @return lun **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "lun is Optional: FC target lun number") public Integer getLun() { return lun; } @@ -123,6 +128,7 @@ public V1FCVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -150,6 +156,7 @@ public V1FCVolumeSource addTargetWWNsItem(String targetWWNsItem) { * @return targetWWNs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "targetWWNs is Optional: FC target worldwide names (WWNs)") public List getTargetWWNs() { return targetWWNs; } @@ -177,6 +184,7 @@ public V1FCVolumeSource addWwidsItem(String wwidsItem) { * @return wwids **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.") public List getWwids() { return wwids; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java index d17da0b754..2cb432cd98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1FieldSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FieldSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) @@ -74,6 +77,7 @@ public V1FieldSelectorAttributes rawSelector(String rawSelector) { * @return rawSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.") public String getRawSelector() { return rawSelector; } @@ -101,6 +105,7 @@ public V1FieldSelectorAttributes addRequirementsItem(V1FieldSelectorRequirement * @return requirements **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.") public List getRequirements() { return requirements; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java index 6e024781b5..fe7bca6243 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FieldSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -77,6 +80,7 @@ public V1FieldSelectorRequirement key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "key is the field selector key that the requirement applies to.") public String getKey() { return key; } @@ -96,6 +100,7 @@ public V1FieldSelectorRequirement operator(String operator) { * @return operator **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.") public String getOperator() { return operator; } @@ -123,6 +128,7 @@ public V1FieldSelectorRequirement addValuesItem(String valuesItem) { * @return values **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.") public List getValues() { return values; } 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 2e9855ad3b..81499d7bed 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -86,6 +89,7 @@ public V1FlexPersistentVolumeSource driver(String driver) { * @return driver **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume.") public String getDriver() { return driver; } @@ -105,6 +109,7 @@ public V1FlexPersistentVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.") public String getFsType() { return fsType; } @@ -132,6 +137,7 @@ public V1FlexPersistentVolumeSource putOptionsItem(String key, String optionsIte * @return options **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "options is Optional: this field holds extra command options if any.") public Map getOptions() { return options; } @@ -151,6 +157,7 @@ public V1FlexPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -170,6 +177,7 @@ public V1FlexPersistentVolumeSource secretRef(V1SecretReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } 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 8653e8edb7..e28d852d22 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -86,6 +89,7 @@ public V1FlexVolumeSource driver(String driver) { * @return driver **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "driver is the name of the driver to use for this volume.") public String getDriver() { return driver; } @@ -105,6 +109,7 @@ public V1FlexVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.") public String getFsType() { return fsType; } @@ -132,6 +137,7 @@ public V1FlexVolumeSource putOptionsItem(String key, String optionsItem) { * @return options **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "options is Optional: this field holds extra command options if any.") public Map getOptions() { return options; } @@ -151,6 +157,7 @@ public V1FlexVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -170,6 +177,7 @@ public V1FlexVolumeSource secretRef(V1LocalObjectReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } 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 c0ebc410c9..78227e721c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; @SerializedName(SERIALIZED_NAME_DATASET_NAME) @@ -71,6 +74,7 @@ public V1FlockerVolumeSource datasetName(String datasetName) { * @return datasetName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated") public String getDatasetName() { return datasetName; } @@ -90,6 +94,7 @@ public V1FlockerVolumeSource datasetUUID(String datasetUUID) { * @return datasetUUID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset") public String getDatasetUUID() { return datasetUUID; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java index b2b99cd703..119e812314 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -67,6 +70,7 @@ public V1FlowDistinguisherMethod type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java index 0f2a09cdd6..6fcf38babe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1FlowSchemaSpec; import io.kubernetes.client.openapi.models.V1FlowSchemaStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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\". */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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\".") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1FlowSchema apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1FlowSchema kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1FlowSchema metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1FlowSchema spec(V1FlowSchemaSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FlowSchemaSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1FlowSchema status(V1FlowSchemaStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FlowSchemaStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java index 071d6b9df7..df2c3e61e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * FlowSchemaCondition describes conditions for a FlowSchema. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransitionTim * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1FlowSchemaCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1FlowSchemaCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1FlowSchemaCondition status(String status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1FlowSchemaCondition type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`type` is the type of the condition. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java index 91db8a748d..c8067df59f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1FlowSchema; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * FlowSchemaList is a list of FlowSchema objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1FlowSchemaList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1FlowSchemaList addItemsItem(V1FlowSchema itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`items` is a list of FlowSchemas.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1FlowSchemaList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1FlowSchemaList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java index c8a4e94ae4..b78e885a07 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1FlowDistinguisherMethod; import io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects; import io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) @@ -84,6 +87,7 @@ public V1FlowSchemaSpec distinguisherMethod(V1FlowDistinguisherMethod distinguis * @return distinguisherMethod **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FlowDistinguisherMethod getDistinguisherMethod() { return distinguisherMethod; } @@ -103,6 +107,7 @@ public V1FlowSchemaSpec matchingPrecedence(Integer matchingPrecedence) { * @return matchingPrecedence **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.") public Integer getMatchingPrecedence() { return matchingPrecedence; } @@ -122,6 +127,7 @@ public V1FlowSchemaSpec priorityLevelConfiguration(V1PriorityLevelConfigurationR * @return priorityLevelConfiguration **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PriorityLevelConfigurationReference getPriorityLevelConfiguration() { return priorityLevelConfiguration; } @@ -149,6 +155,7 @@ public V1FlowSchemaSpec addRulesItem(V1PolicyRulesWithSubjects rulesItem) { * @return rules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.") public List getRules() { return rules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java index 2749446412..fdce03f691 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1FlowSchemaCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * FlowSchemaStatus represents the current state of a FlowSchema. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -78,6 +81,7 @@ public V1FlowSchemaStatus addConditionsItem(V1FlowSchemaCondition conditionsItem * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`conditions` is a list of the current states of FlowSchema.") public List getConditions() { return conditions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java index 0ade83d672..1b0284e29a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ForZone provides information about which zones should consume this endpoint. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ForZone provides information about which zones should consume this endpoint.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ForZone { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1ForZone name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name represents the name of the zone.") public String getName() { return name; } 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 0076870ae2..2011c9555f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -79,6 +82,7 @@ public V1GCEPersistentDiskVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public String getFsType() { return fsType; } @@ -98,6 +102,7 @@ public V1GCEPersistentDiskVolumeSource partition(Integer partition) { * @return partition **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public Integer getPartition() { return partition; } @@ -117,6 +122,7 @@ public V1GCEPersistentDiskVolumeSource pdName(String pdName) { * @return pdName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public String getPdName() { return pdName; } @@ -136,6 +142,7 @@ public V1GCEPersistentDiskVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") public Boolean getReadOnly() { return readOnly; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java index c78e64515f..b2e832dbe2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,7 @@ /** * V1GRPCAction */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) @@ -71,6 +73,7 @@ public V1GRPCAction port(Integer port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Port number of the gRPC service. Number must be in the range 1 to 65535.") public Integer getPort() { return port; } @@ -90,6 +93,7 @@ public V1GRPCAction service(String service) { * @return service **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.") public String getService() { return service; } 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 eccafa1451..c32a1e546a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; @SerializedName(SERIALIZED_NAME_DIRECTORY) @@ -75,6 +78,7 @@ public V1GitRepoVolumeSource directory(String directory) { * @return directory **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.") public String getDirectory() { return directory; } @@ -94,6 +98,7 @@ public V1GitRepoVolumeSource repository(String repository) { * @return repository **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "repository is the URL") public String getRepository() { return repository; } @@ -113,6 +118,7 @@ public V1GitRepoVolumeSource revision(String revision) { * @return revision **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "revision is the commit hash for the specified revision.") public String getRevision() { return revision; } 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 aa14e4afb5..bb8728472c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) @@ -79,6 +82,7 @@ public V1GlusterfsPersistentVolumeSource endpoints(String endpoints) { * @return endpoints **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getEndpoints() { return endpoints; } @@ -98,6 +102,7 @@ public V1GlusterfsPersistentVolumeSource endpointsNamespace(String endpointsName * @return endpointsNamespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getEndpointsNamespace() { return endpointsNamespace; } @@ -117,6 +122,7 @@ public V1GlusterfsPersistentVolumeSource path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getPath() { return path; } @@ -136,6 +142,7 @@ public V1GlusterfsPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public Boolean getReadOnly() { return readOnly; } 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 ad977b1252..4b61d9064a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) @@ -75,6 +78,7 @@ public V1GlusterfsVolumeSource endpoints(String endpoints) { * @return endpoints **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getEndpoints() { return endpoints; } @@ -94,6 +98,7 @@ public V1GlusterfsVolumeSource path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public String getPath() { return path; } @@ -113,6 +118,7 @@ public V1GlusterfsVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") public Boolean getReadOnly() { return readOnly; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java index a3887874d3..39ec2d250f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * GroupSubject holds detailed information for group-kind subject. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1GroupSubject name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.") public String getName() { return name; } 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 128d8a59bc..a6f124ee9e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_VERSION) @@ -71,6 +74,7 @@ public V1GroupVersionForDiscovery groupVersion(String groupVersion) { * @return groupVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "groupVersion specifies the API group and version in the form \"group/version\"") public String getGroupVersion() { return groupVersion; } @@ -90,6 +94,7 @@ public V1GroupVersionForDiscovery version(String version) { * @return version **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.") public String getVersion() { return version; } 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 dc101288c8..18ea69e26b 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.openapi.models.V1HTTPHeader; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * HTTPGetAction describes an action based on HTTP Get requests. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @@ -87,6 +90,7 @@ public V1HTTPGetAction host(String host) { * @return host **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.") public String getHost() { return host; } @@ -114,6 +118,7 @@ public V1HTTPGetAction addHttpHeadersItem(V1HTTPHeader httpHeadersItem) { * @return httpHeaders **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Custom headers to set in the request. HTTP allows repeated headers.") public List getHttpHeaders() { return httpHeaders; } @@ -133,6 +138,7 @@ public V1HTTPGetAction path(String path) { * @return path **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Path to access on the HTTP server.") public String getPath() { return path; } @@ -152,6 +158,7 @@ public V1HTTPGetAction port(IntOrString port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getPort() { return port; } @@ -171,6 +178,7 @@ public V1HTTPGetAction scheme(String scheme) { * @return scheme **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Scheme to use for connecting to the host. Defaults to HTTP.") public String getScheme() { return scheme; } 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 9fb1175828..6e576d928f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * HTTPHeader describes a custom header to be used in HTTP probes */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1HTTPHeader name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1HTTPHeader value(String value) { * @return value **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The header field value") public String getValue() { return value; } 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 c40a55ab1e..4f7ac89803 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressBackend; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; @SerializedName(SERIALIZED_NAME_BACKEND) @@ -76,6 +79,7 @@ public V1HTTPIngressPath backend(V1IngressBackend backend) { * @return backend **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1IngressBackend getBackend() { return backend; } @@ -95,6 +99,7 @@ public V1HTTPIngressPath path(String path) { * @return path **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".") public String getPath() { return path; } @@ -114,6 +119,7 @@ public V1HTTPIngressPath pathType(String pathType) { * @return pathType **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is done on a path element by element basis. A path element refers is the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). * ImplementationSpecific: Interpretation of the Path matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types. Implementations are required to support all path types.") public String getPathType() { return pathType; } 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 d67eaf74e7..24a99b217c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1HTTPIngressPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> 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 '#'. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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 '#'.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) @@ -78,6 +81,7 @@ public V1HTTPIngressRuleValue addPathsItem(V1HTTPIngressPath pathsItem) { * @return paths **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "paths is a collection of paths that map requests to backends.") public List getPaths() { return paths; } 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 dece7670ad..c624adb424 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec; import io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * configuration of a horizontal pod autoscaler. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "configuration of a horizontal pod autoscaler.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1HorizontalPodAutoscaler apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1HorizontalPodAutoscaler kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1HorizontalPodAutoscaler spec(V1HorizontalPodAutoscalerSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1HorizontalPodAutoscalerSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1HorizontalPodAutoscaler status(V1HorizontalPodAutoscalerStatus status) * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1HorizontalPodAutoscalerStatus getStatus() { return status; } 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 6fa0e5e67f..78d1a353da 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * list of horizontal pod autoscaler objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "list of horizontal pod autoscaler objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1HorizontalPodAutoscalerList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1HorizontalPodAutoscalerList addItemsItem(V1HorizontalPodAutoscaler item * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of horizontal pod autoscaler objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1HorizontalPodAutoscalerList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 c935f00882..6c2b3842d9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1CrossVersionObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * specification of a horizontal pod autoscaler. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "specification of a horizontal pod autoscaler.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) @@ -80,6 +83,7 @@ public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { * @return maxReplicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.") public Integer getMaxReplicas() { return maxReplicas; } @@ -99,6 +103,7 @@ public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { * @return minReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.") public Integer getMinReplicas() { return minReplicas; } @@ -118,6 +123,7 @@ public V1HorizontalPodAutoscalerSpec scaleTargetRef(V1CrossVersionObjectReferenc * @return scaleTargetRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } @@ -137,6 +143,7 @@ public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targ * @return targetCPUUtilizationPercentage **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.") public Integer getTargetCPUUtilizationPercentage() { return targetCPUUtilizationPercentage; } 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 50d920684e..18bc55510c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * current status of a horizontal pod autoscaler */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "current status of a horizontal pod autoscaler") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; @SerializedName(SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE) @@ -84,6 +87,7 @@ public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer c * @return currentCPUUtilizationPercentage **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "currentCPUUtilizationPercentage is the 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.") public Integer getCurrentCPUUtilizationPercentage() { return currentCPUUtilizationPercentage; } @@ -103,6 +107,7 @@ public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) * @return currentReplicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "currentReplicas is the current number of replicas of pods managed by this autoscaler.") public Integer getCurrentReplicas() { return currentReplicas; } @@ -122,6 +127,7 @@ public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) * @return desiredReplicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.") public Integer getDesiredReplicas() { return desiredReplicas; } @@ -141,6 +147,7 @@ public V1HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTim * @return lastScaleTime **/ @jakarta.annotation.Nullable + @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 OffsetDateTime getLastScaleTime() { return lastScaleTime; } @@ -160,6 +167,7 @@ public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneratio * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "observedGeneration is the most recent generation observed by this autoscaler.") public Long getObservedGeneration() { return observedGeneration; } 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 6bc170f089..6b186bc400 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @SerializedName(SERIALIZED_NAME_HOSTNAMES) @@ -81,6 +84,7 @@ public V1HostAlias addHostnamesItem(String hostnamesItem) { * @return hostnames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Hostnames for the above IP address.") public List getHostnames() { return hostnames; } @@ -100,6 +104,7 @@ public V1HostAlias ip(String ip) { * @return ip **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "IP address of the host file entry.") public String getIp() { return ip; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java index a30ddfcd21..9d97cb47b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * HostIP represents a single IP address allocated to the host. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HostIP represents a single IP address allocated to the host.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HostIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) @@ -67,6 +70,7 @@ public V1HostIP ip(String ip) { * @return ip **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "IP is the IP address assigned to the host") public String getIp() { return ip; } 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 67c5ff1708..36c58363d9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -71,6 +74,7 @@ public V1HostPathVolumeSource path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") public String getPath() { return path; } @@ -90,6 +94,7 @@ public V1HostPathVolumeSource type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") public String getType() { return type; } 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 97c08ec64e..ee5c239f39 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; @SerializedName(SERIALIZED_NAME_CIDR) @@ -73,6 +76,7 @@ public V1IPBlock cidr(String cidr) { * @return cidr **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"") public String getCidr() { return cidr; } @@ -100,6 +104,7 @@ public V1IPBlock addExceptItem(String exceptItem) { * @return except **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range") public List getExcept() { return except; } 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 5e0374415b..3aba636fad 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) @@ -110,6 +113,7 @@ public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery * @return chapAuthDiscovery **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication") public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } @@ -129,6 +133,7 @@ public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession) { * @return chapAuthSession **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "chapAuthSession defines whether support iSCSI Session CHAP authentication") public Boolean getChapAuthSession() { return chapAuthSession; } @@ -148,6 +153,7 @@ public V1ISCSIPersistentVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi") public String getFsType() { return fsType; } @@ -167,6 +173,7 @@ public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName) { * @return initiatorName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") public String getInitiatorName() { return initiatorName; } @@ -186,6 +193,7 @@ public V1ISCSIPersistentVolumeSource iqn(String iqn) { * @return iqn **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "iqn is Target iSCSI Qualified Name.") public String getIqn() { return iqn; } @@ -205,6 +213,7 @@ public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface) { * @return iscsiInterface **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") public String getIscsiInterface() { return iscsiInterface; } @@ -224,6 +233,7 @@ public V1ISCSIPersistentVolumeSource lun(Integer lun) { * @return lun **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "lun is iSCSI Target Lun number.") public Integer getLun() { return lun; } @@ -251,6 +261,7 @@ public V1ISCSIPersistentVolumeSource addPortalsItem(String portalsItem) { * @return portals **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public List getPortals() { return portals; } @@ -270,6 +281,7 @@ public V1ISCSIPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") public Boolean getReadOnly() { return readOnly; } @@ -289,6 +301,7 @@ public V1ISCSIPersistentVolumeSource secretRef(V1SecretReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } @@ -308,6 +321,7 @@ public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal) { * @return targetPortal **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public String getTargetPortal() { return targetPortal; } 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 24651093a8..e09228617a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) @@ -110,6 +113,7 @@ public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { * @return chapAuthDiscovery **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication") public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } @@ -129,6 +133,7 @@ public V1ISCSIVolumeSource chapAuthSession(Boolean chapAuthSession) { * @return chapAuthSession **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "chapAuthSession defines whether support iSCSI Session CHAP authentication") public Boolean getChapAuthSession() { return chapAuthSession; } @@ -148,6 +153,7 @@ public V1ISCSIVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi") public String getFsType() { return fsType; } @@ -167,6 +173,7 @@ public V1ISCSIVolumeSource initiatorName(String initiatorName) { * @return initiatorName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") public String getInitiatorName() { return initiatorName; } @@ -186,6 +193,7 @@ public V1ISCSIVolumeSource iqn(String iqn) { * @return iqn **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "iqn is the target iSCSI Qualified Name.") public String getIqn() { return iqn; } @@ -205,6 +213,7 @@ public V1ISCSIVolumeSource iscsiInterface(String iscsiInterface) { * @return iscsiInterface **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") public String getIscsiInterface() { return iscsiInterface; } @@ -224,6 +233,7 @@ public V1ISCSIVolumeSource lun(Integer lun) { * @return lun **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "lun represents iSCSI Target Lun number.") public Integer getLun() { return lun; } @@ -251,6 +261,7 @@ public V1ISCSIVolumeSource addPortalsItem(String portalsItem) { * @return portals **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public List getPortals() { return portals; } @@ -270,6 +281,7 @@ public V1ISCSIVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") public Boolean getReadOnly() { return readOnly; } @@ -289,6 +301,7 @@ public V1ISCSIVolumeSource secretRef(V1LocalObjectReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -308,6 +321,7 @@ public V1ISCSIVolumeSource targetPortal(String targetPortal) { * @return targetPortal **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") public String getTargetPortal() { return targetPortal; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java index 41440e9275..96bd1b2cc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ImageVolumeSource represents a image volume resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ImageVolumeSource represents a image volume resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ImageVolumeSource { public static final String SERIALIZED_NAME_PULL_POLICY = "pullPolicy"; @SerializedName(SERIALIZED_NAME_PULL_POLICY) @@ -71,6 +74,7 @@ public V1ImageVolumeSource pullPolicy(String pullPolicy) { * @return pullPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.") public String getPullPolicy() { return pullPolicy; } @@ -90,6 +94,7 @@ public V1ImageVolumeSource reference(String reference) { * @return reference **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.") public String getReference() { return reference; } 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 fef46d2a87..6dc80eba0d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1IngressSpec; import io.kubernetes.client.openapi.models.V1IngressStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Ingress apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Ingress kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Ingress metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Ingress spec(V1IngressSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IngressSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Ingress status(V1IngressStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IngressStatus getStatus() { return status; } 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 92957d5c17..714c2f0295 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressServiceBackend; import io.kubernetes.client.openapi.models.V1TypedLocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * IngressBackend describes all endpoints for a given service and port. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) @@ -73,6 +76,7 @@ public V1IngressBackend resource(V1TypedLocalObjectReference resource) { * @return resource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TypedLocalObjectReference getResource() { return resource; } @@ -92,6 +96,7 @@ public V1IngressBackend service(V1IngressServiceBackend service) { * @return service **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IngressServiceBackend getService() { return service; } 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 571aac3ddb..d7a627cd10 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressClassSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1IngressClass apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1IngressClass kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1IngressClass metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1IngressClass spec(V1IngressClassSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IngressClassSpec getSpec() { return spec; } 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 bc3e68ad0f..60c97747b5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressClass; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * IngressClassList is a collection of IngressClasses. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressClassList is a collection of IngressClasses.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1IngressClassList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1IngressClassList addItemsItem(V1IngressClass itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of IngressClasses.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1IngressClassList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1IngressClassList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java index a1d6fdbd71..1afeb9cf39 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -83,6 +86,7 @@ public V1IngressClassParametersReference apiGroup(String apiGroup) { * @return apiGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") public String getApiGroup() { return apiGroup; } @@ -102,6 +106,7 @@ public V1IngressClassParametersReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "kind is the type of resource being referenced.") public String getKind() { return kind; } @@ -121,6 +126,7 @@ public V1IngressClassParametersReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of resource being referenced.") public String getName() { return name; } @@ -140,6 +146,7 @@ public V1IngressClassParametersReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".") public String getNamespace() { return namespace; } @@ -159,6 +166,7 @@ public V1IngressClassParametersReference scope(String scope) { * @return scope **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".") public String getScope() { return scope; } 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 8dc60759d8..9d1dcb72a1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressClassParametersReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * IngressClassSpec provides information about the class of an Ingress. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) @@ -72,6 +75,7 @@ public V1IngressClassSpec controller(String controller) { * @return controller **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.") public String getController() { return controller; } @@ -91,6 +95,7 @@ public V1IngressClassSpec parameters(V1IngressClassParametersReference parameter * @return parameters **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IngressClassParametersReference getParameters() { return parameters; } 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 d3b0681036..223ab2b3e2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Ingress; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * IngressList is a collection of Ingress. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressList is a collection of Ingress.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1IngressList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1IngressList addItemsItem(V1Ingress itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of Ingress.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1IngressList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1IngressList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java index b8815da7dc..8233f7c88c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressPortStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressLoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -78,6 +81,7 @@ public V1IngressLoadBalancerIngress hostname(String hostname) { * @return hostname **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "hostname is set for load-balancer ingress points that are DNS based.") public String getHostname() { return hostname; } @@ -97,6 +101,7 @@ public V1IngressLoadBalancerIngress ip(String ip) { * @return ip **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ip is set for load-balancer ingress points that are IP based.") public String getIp() { return ip; } @@ -124,6 +129,7 @@ public V1IngressLoadBalancerIngress addPortsItem(V1IngressPortStatus portsItem) * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ports provides information about the ports exposed by this LoadBalancer.") public List getPorts() { return ports; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java index 349c949a18..dbe7fe6bf9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * IngressLoadBalancerStatus represents the status of a load-balancer. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressLoadBalancerStatus represents the status of a load-balancer.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressLoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) @@ -78,6 +81,7 @@ public V1IngressLoadBalancerStatus addIngressItem(V1IngressLoadBalancerIngress i * @return ingress **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ingress is a list containing ingress points for the load-balancer.") public List getIngress() { return ingress; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java index c4f4c2242a..69855cce24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * IngressPortStatus represents the error condition of a service port */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressPortStatus represents the error condition of a service port") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressPortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -75,6 +78,7 @@ public V1IngressPortStatus error(String error) { * @return error **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase.") public String getError() { return error; } @@ -94,6 +98,7 @@ public V1IngressPortStatus port(Integer port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "port is the port number of the ingress port.") public Integer getPort() { return port; } @@ -113,6 +118,7 @@ public V1IngressPortStatus protocol(String protocol) { * @return protocol **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"") public String getProtocol() { return protocol; } 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 267406c0b3..72ffa76751 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @@ -72,6 +75,7 @@ public V1IngressRule host(String host) { * @return host **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. host can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.") public String getHost() { return host; } @@ -91,6 +95,7 @@ public V1IngressRule http(V1HTTPIngressRuleValue http) { * @return http **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1HTTPIngressRuleValue getHttp() { return http; } 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 7ce5a2ab63..cd94110939 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ServiceBackendPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * IngressServiceBackend references a Kubernetes Service as a Backend. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -72,6 +75,7 @@ public V1IngressServiceBackend name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the referenced service. The service must exist in the same namespace as the Ingress object.") public String getName() { return name; } @@ -91,6 +95,7 @@ public V1IngressServiceBackend port(V1ServiceBackendPort port) { * @return port **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ServiceBackendPort getPort() { return port; } 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 65befc5903..07fc6542a4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1IngressBackend; import io.kubernetes.client.openapi.models.V1IngressRule; import io.kubernetes.client.openapi.models.V1IngressTLS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * IngressSpec describes the Ingress the user wishes to exist. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @SerializedName(SERIALIZED_NAME_DEFAULT_BACKEND) @@ -84,6 +87,7 @@ public V1IngressSpec defaultBackend(V1IngressBackend defaultBackend) { * @return defaultBackend **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IngressBackend getDefaultBackend() { return defaultBackend; } @@ -103,6 +107,7 @@ public V1IngressSpec ingressClassName(String ingressClassName) { * @return ingressClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.") public String getIngressClassName() { return ingressClassName; } @@ -130,6 +135,7 @@ public V1IngressSpec addRulesItem(V1IngressRule rulesItem) { * @return rules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.") public List getRules() { return rules; } @@ -157,6 +163,7 @@ public V1IngressSpec addTlsItem(V1IngressTLS tlsItem) { * @return tls **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.") public List getTls() { return tls; } 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 7771bc332c..dc1c9d6106 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IngressLoadBalancerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * IngressStatus describe the current state of the Ingress. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressStatus describe the current state of the Ingress.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) @@ -68,6 +71,7 @@ public V1IngressStatus loadBalancer(V1IngressLoadBalancerStatus loadBalancer) { * @return loadBalancer **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IngressLoadBalancerStatus getLoadBalancer() { return 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 72caa1ae0a..d6aa684bd3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * IngressTLS describes the transport layer security associated with an ingress. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IngressTLS describes the transport layer security associated with an ingress.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) @@ -81,6 +84,7 @@ public V1IngressTLS addHostsItem(String hostsItem) { * @return hosts **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.") public List getHosts() { return hosts; } @@ -100,6 +104,7 @@ public V1IngressTLS secretName(String secretName) { * @return secretName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.") public String getSecretName() { return secretName; } 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 8e3c7758f5..c122cd15a9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ExternalDocumentation; import io.kubernetes.client.openapi.models.V1ValidationRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @SerializedName(SERIALIZED_NAME_$_REF) @@ -245,6 +248,7 @@ public V1JSONSchemaProps() { * @return $ref **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String get$Ref() { return $ref; } @@ -264,6 +268,7 @@ public V1JSONSchemaProps() { * @return $schema **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String get$Schema() { return $schema; } @@ -283,6 +288,7 @@ public V1JSONSchemaProps additionalItems(Object additionalItems) { * @return additionalItems **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") public Object getAdditionalItems() { return additionalItems; } @@ -302,6 +308,7 @@ public V1JSONSchemaProps additionalProperties(Object additionalProperties) { * @return additionalProperties **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") public Object getAdditionalProperties() { return additionalProperties; } @@ -329,6 +336,7 @@ public V1JSONSchemaProps addAllOfItem(V1JSONSchemaProps allOfItem) { * @return allOf **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public List getAllOf() { return allOf; } @@ -356,6 +364,7 @@ public V1JSONSchemaProps addAnyOfItem(V1JSONSchemaProps anyOfItem) { * @return anyOf **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public List getAnyOf() { return anyOf; } @@ -375,6 +384,7 @@ public V1JSONSchemaProps _default(Object _default) { * @return _default **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.") public Object getDefault() { return _default; } @@ -402,6 +412,7 @@ public V1JSONSchemaProps putDefinitionsItem(String key, V1JSONSchemaProps defini * @return definitions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Map getDefinitions() { return definitions; } @@ -429,6 +440,7 @@ public V1JSONSchemaProps putDependenciesItem(String key, Object dependenciesItem * @return dependencies **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Map getDependencies() { return dependencies; } @@ -448,6 +460,7 @@ public V1JSONSchemaProps description(String description) { * @return description **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getDescription() { return description; } @@ -475,6 +488,7 @@ public V1JSONSchemaProps addEnumItem(Object _enumItem) { * @return _enum **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public List getEnum() { return _enum; } @@ -494,6 +508,7 @@ public V1JSONSchemaProps example(Object example) { * @return example **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.") public Object getExample() { return example; } @@ -513,6 +528,7 @@ public V1JSONSchemaProps exclusiveMaximum(Boolean exclusiveMaximum) { * @return exclusiveMaximum **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getExclusiveMaximum() { return exclusiveMaximum; } @@ -532,6 +548,7 @@ public V1JSONSchemaProps exclusiveMinimum(Boolean exclusiveMinimum) { * @return exclusiveMinimum **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getExclusiveMinimum() { return exclusiveMinimum; } @@ -551,6 +568,7 @@ public V1JSONSchemaProps externalDocs(V1ExternalDocumentation externalDocs) { * @return externalDocs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ExternalDocumentation getExternalDocs() { return externalDocs; } @@ -570,6 +588,7 @@ public V1JSONSchemaProps format(String format) { * @return format **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.") public String getFormat() { return format; } @@ -589,6 +608,7 @@ public V1JSONSchemaProps id(String id) { * @return id **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getId() { return id; } @@ -608,6 +628,7 @@ public V1JSONSchemaProps items(Object items) { * @return items **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.") public Object getItems() { return items; } @@ -627,6 +648,7 @@ public V1JSONSchemaProps maxItems(Long maxItems) { * @return maxItems **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Long getMaxItems() { return maxItems; } @@ -646,6 +668,7 @@ public V1JSONSchemaProps maxLength(Long maxLength) { * @return maxLength **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Long getMaxLength() { return maxLength; } @@ -665,6 +688,7 @@ public V1JSONSchemaProps maxProperties(Long maxProperties) { * @return maxProperties **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Long getMaxProperties() { return maxProperties; } @@ -684,6 +708,7 @@ public V1JSONSchemaProps maximum(Double maximum) { * @return maximum **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Double getMaximum() { return maximum; } @@ -703,6 +728,7 @@ public V1JSONSchemaProps minItems(Long minItems) { * @return minItems **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Long getMinItems() { return minItems; } @@ -722,6 +748,7 @@ public V1JSONSchemaProps minLength(Long minLength) { * @return minLength **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Long getMinLength() { return minLength; } @@ -741,6 +768,7 @@ public V1JSONSchemaProps minProperties(Long minProperties) { * @return minProperties **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Long getMinProperties() { return minProperties; } @@ -760,6 +788,7 @@ public V1JSONSchemaProps minimum(Double minimum) { * @return minimum **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Double getMinimum() { return minimum; } @@ -779,6 +808,7 @@ public V1JSONSchemaProps multipleOf(Double multipleOf) { * @return multipleOf **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Double getMultipleOf() { return multipleOf; } @@ -798,6 +828,7 @@ public V1JSONSchemaProps not(V1JSONSchemaProps not) { * @return not **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1JSONSchemaProps getNot() { return not; } @@ -817,6 +848,7 @@ public V1JSONSchemaProps nullable(Boolean nullable) { * @return nullable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getNullable() { return nullable; } @@ -844,6 +876,7 @@ public V1JSONSchemaProps addOneOfItem(V1JSONSchemaProps oneOfItem) { * @return oneOf **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public List getOneOf() { return oneOf; } @@ -863,6 +896,7 @@ public V1JSONSchemaProps pattern(String pattern) { * @return pattern **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getPattern() { return pattern; } @@ -890,6 +924,7 @@ public V1JSONSchemaProps putPatternPropertiesItem(String key, V1JSONSchemaProps * @return patternProperties **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Map getPatternProperties() { return patternProperties; } @@ -917,6 +952,7 @@ public V1JSONSchemaProps putPropertiesItem(String key, V1JSONSchemaProps propert * @return properties **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Map getProperties() { return properties; } @@ -944,6 +980,7 @@ public V1JSONSchemaProps addRequiredItem(String requiredItem) { * @return required **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public List getRequired() { return required; } @@ -963,6 +1000,7 @@ public V1JSONSchemaProps title(String title) { * @return title **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getTitle() { return title; } @@ -982,6 +1020,7 @@ public V1JSONSchemaProps type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getType() { return type; } @@ -1001,6 +1040,7 @@ public V1JSONSchemaProps uniqueItems(Boolean uniqueItems) { * @return uniqueItems **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public Boolean getUniqueItems() { return uniqueItems; } @@ -1020,6 +1060,7 @@ public V1JSONSchemaProps xKubernetesEmbeddedResource(Boolean xKubernetesEmbedded * @return xKubernetesEmbeddedResource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).") public Boolean getxKubernetesEmbeddedResource() { return xKubernetesEmbeddedResource; } @@ -1039,6 +1080,7 @@ public V1JSONSchemaProps xKubernetesIntOrString(Boolean xKubernetesIntOrString) * @return xKubernetesIntOrString **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more") public Boolean getxKubernetesIntOrString() { return xKubernetesIntOrString; } @@ -1066,6 +1108,7 @@ public V1JSONSchemaProps addXKubernetesListMapKeysItem(String xKubernetesListMap * @return xKubernetesListMapKeys **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. This tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). The properties specified must either be required or have a default value, to ensure those properties are present for all list items.") public List getxKubernetesListMapKeys() { return xKubernetesListMapKeys; } @@ -1085,6 +1128,7 @@ public V1JSONSchemaProps xKubernetesListType(String xKubernetesListType) { * @return xKubernetesListType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: 1) `atomic`: the list is treated as a single entity, like a scalar. Atomic lists will be entirely replaced when updated. This extension may be used on any type of list (struct, scalar, ...). 2) `set`: Sets are lists that must not have multiple items with the same value. Each value must be a scalar, an object with x-kubernetes-map-type `atomic` or an array with x-kubernetes-list-type `atomic`. 3) `map`: These lists are like maps in that their elements have a non-index key used to identify them. Order is preserved upon merge. The map tag must only be used on a list with elements of type object. Defaults to atomic for arrays.") public String getxKubernetesListType() { return xKubernetesListType; } @@ -1104,6 +1148,7 @@ public V1JSONSchemaProps xKubernetesMapType(String xKubernetesMapType) { * @return xKubernetesMapType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: 1) `granular`: These maps are actual maps (key-value pairs) and each fields are independent from each other (they can each be manipulated by separate actors). This is the default behaviour for all maps. 2) `atomic`: the list is treated as a single entity, like a scalar. Atomic maps will be entirely replaced when updated.") public String getxKubernetesMapType() { return xKubernetesMapType; } @@ -1123,6 +1168,7 @@ public V1JSONSchemaProps xKubernetesPreserveUnknownFields(Boolean xKubernetesPre * @return xKubernetesPreserveUnknownFields **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.") public Boolean getxKubernetesPreserveUnknownFields() { return xKubernetesPreserveUnknownFields; } @@ -1150,6 +1196,7 @@ public V1JSONSchemaProps addXKubernetesValidationsItem(V1ValidationRule xKuberne * @return xKubernetesValidations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.") public List getxKubernetesValidations() { return xKubernetesValidations; } 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 76b14ebace..4dd7372da3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1JobSpec; import io.kubernetes.client.openapi.models.V1JobStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Job represents the configuration of a single job. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Job represents the configuration of a single job.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Job apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Job kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Job metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Job spec(V1JobSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1JobSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Job status(V1JobStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1JobStatus getStatus() { return status; } 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 7f360c0119..789f8f35db 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * JobCondition describes current state of a job. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "JobCondition describes current state of a job.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -88,6 +91,7 @@ public V1JobCondition lastProbeTime(OffsetDateTime lastProbeTime) { * @return lastProbeTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition was checked.") public OffsetDateTime getLastProbeTime() { return lastProbeTime; } @@ -107,6 +111,7 @@ public V1JobCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transit from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -126,6 +131,7 @@ public V1JobCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Human readable message indicating details about last transition.") public String getMessage() { return message; } @@ -145,6 +151,7 @@ public V1JobCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "(brief) reason for the condition's last transition.") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1JobCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1JobCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of job condition, Complete or Failed.") public String getType() { return type; } 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 36cf19208a..30334772c2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Job; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * JobList is a collection of jobs. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "JobList is a collection of jobs.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1JobList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1JobList addItemsItem(V1Job itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of Jobs.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1JobList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1JobList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 0ef75fd372..6ba3d7106d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1PodFailurePolicy; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; import io.kubernetes.client.openapi.models.V1SuccessPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * JobSpec describes how the job execution will look like. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "JobSpec describes how the job execution will look like.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -131,6 +134,7 @@ public V1JobSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { * @return activeDeadlineSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.") public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } @@ -150,6 +154,7 @@ public V1JobSpec backoffLimit(Integer backoffLimit) { * @return backoffLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the number of retries before marking this job failed. Defaults to 6") public Integer getBackoffLimit() { return backoffLimit; } @@ -169,6 +174,7 @@ public V1JobSpec backoffLimitPerIndex(Integer backoffLimitPerIndex) { * @return backoffLimitPerIndex **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).") public Integer getBackoffLimitPerIndex() { return backoffLimitPerIndex; } @@ -188,6 +194,7 @@ public V1JobSpec completionMode(String completionMode) { * @return completionMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.") public String getCompletionMode() { return completionMode; } @@ -207,6 +214,7 @@ public V1JobSpec completions(Integer completions) { * @return completions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") public Integer getCompletions() { return completions; } @@ -226,6 +234,7 @@ public V1JobSpec managedBy(String managedBy) { * @return managedBy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable. This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).") public String getManagedBy() { return managedBy; } @@ -245,6 +254,7 @@ public V1JobSpec manualSelector(Boolean manualSelector) { * @return manualSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector") public Boolean getManualSelector() { return manualSelector; } @@ -264,6 +274,7 @@ public V1JobSpec maxFailedIndexes(Integer maxFailedIndexes) { * @return maxFailedIndexes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).") public Integer getMaxFailedIndexes() { return maxFailedIndexes; } @@ -283,6 +294,7 @@ public V1JobSpec parallelism(Integer parallelism) { * @return parallelism **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") public Integer getParallelism() { return parallelism; } @@ -302,6 +314,7 @@ public V1JobSpec podFailurePolicy(V1PodFailurePolicy podFailurePolicy) { * @return podFailurePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodFailurePolicy getPodFailurePolicy() { return podFailurePolicy; } @@ -321,6 +334,7 @@ public V1JobSpec podReplacementPolicy(String podReplacementPolicy) { * @return podReplacementPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.") public String getPodReplacementPolicy() { return podReplacementPolicy; } @@ -340,6 +354,7 @@ public V1JobSpec selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } @@ -359,6 +374,7 @@ public V1JobSpec successPolicy(V1SuccessPolicy successPolicy) { * @return successPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SuccessPolicy getSuccessPolicy() { return successPolicy; } @@ -378,6 +394,7 @@ public V1JobSpec suspend(Boolean suspend) { * @return suspend **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.") public Boolean getSuspend() { return suspend; } @@ -397,6 +414,7 @@ public V1JobSpec template(V1PodTemplateSpec template) { * @return template **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } @@ -416,6 +434,7 @@ public V1JobSpec ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { * @return ttlSecondsAfterFinished **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.") public Integer getTtlSecondsAfterFinished() { return ttlSecondsAfterFinished; } 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 e940cf604e..e8af575830 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JobCondition; import io.kubernetes.client.openapi.models.V1UncountedTerminatedPods; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -53,7 +55,8 @@ /** * JobStatus represents the current state of a Job. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "JobStatus represents the current state of a Job.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -112,6 +115,7 @@ public V1JobStatus active(Integer active) { * @return active **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.") public Integer getActive() { return active; } @@ -131,6 +135,7 @@ public V1JobStatus completedIndexes(String completedIndexes) { * @return completedIndexes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".") public String getCompletedIndexes() { return completedIndexes; } @@ -150,6 +155,7 @@ public V1JobStatus completionTime(OffsetDateTime completionTime) { * @return completionTime **/ @jakarta.annotation.Nullable + @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. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.") public OffsetDateTime getCompletionTime() { return completionTime; } @@ -177,6 +183,7 @@ public V1JobStatus addConditionsItem(V1JobCondition conditionsItem) { * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. A job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") public List getConditions() { return conditions; } @@ -196,6 +203,7 @@ public V1JobStatus failed(Integer failed) { * @return failed **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of pods which reached phase Failed. The value increases monotonically.") public Integer getFailed() { return failed; } @@ -215,6 +223,7 @@ public V1JobStatus failedIndexes(String failedIndexes) { * @return failedIndexes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).") public String getFailedIndexes() { return failedIndexes; } @@ -234,6 +243,7 @@ public V1JobStatus ready(Integer ready) { * @return ready **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).") public Integer getReady() { return ready; } @@ -253,6 +263,7 @@ public V1JobStatus startTime(OffsetDateTime startTime) { * @return startTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC. Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.") public OffsetDateTime getStartTime() { return startTime; } @@ -272,6 +283,7 @@ public V1JobStatus succeeded(Integer succeeded) { * @return succeeded **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.") public Integer getSucceeded() { return succeeded; } @@ -291,6 +303,7 @@ public V1JobStatus terminating(Integer terminating) { * @return terminating **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp). This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).") public Integer getTerminating() { return terminating; } @@ -310,6 +323,7 @@ public V1JobStatus uncountedTerminatedPods(V1UncountedTerminatedPods uncountedTe * @return uncountedTerminatedPods **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1UncountedTerminatedPods getUncountedTerminatedPods() { return uncountedTerminatedPods; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java index 4ad00e0e29..64d6bd51a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1JobSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * JobTemplateSpec describes the data a Job should have when created from a template */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "JobTemplateSpec describes the data a Job should have when created from a template") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -73,6 +76,7 @@ public V1JobTemplateSpec metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -92,6 +96,7 @@ public V1JobTemplateSpec spec(V1JobSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1JobSpec getSpec() { return spec; } 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 ac1cec32e0..f76995b446 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Maps a string key to a path within a volume. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Maps a string key to a path within a volume.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -75,6 +78,7 @@ public V1KeyToPath key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "key is the key to project.") public String getKey() { return key; } @@ -94,6 +98,7 @@ public V1KeyToPath mode(Integer mode) { * @return mode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getMode() { return mode; } @@ -113,6 +118,7 @@ public V1KeyToPath path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.") public String getPath() { return path; } 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 1163e606ca..b8676c0bdb 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) @@ -84,6 +87,7 @@ public V1LabelSelector addMatchExpressionsItem(V1LabelSelectorRequirement matchE * @return matchExpressions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") public List getMatchExpressions() { return matchExpressions; } @@ -111,6 +115,7 @@ public V1LabelSelector putMatchLabelsItem(String key, String matchLabelsItem) { * @return matchLabels **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") public Map getMatchLabels() { return matchLabels; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java index 499589dacf..b0bceeb680 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LabelSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) @@ -74,6 +77,7 @@ public V1LabelSelectorAttributes rawSelector(String rawSelector) { * @return rawSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.") public String getRawSelector() { return rawSelector; } @@ -101,6 +105,7 @@ public V1LabelSelectorAttributes addRequirementsItem(V1LabelSelectorRequirement * @return requirements **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.") public List getRequirements() { return requirements; } 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 8fc6bcf3e0..a1bd8f31ad 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -77,6 +80,7 @@ public V1LabelSelectorRequirement key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "key is the label key that the selector applies to.") public String getKey() { return key; } @@ -96,6 +100,7 @@ public V1LabelSelectorRequirement operator(String operator) { * @return operator **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.") public String getOperator() { return operator; } @@ -123,6 +128,7 @@ public V1LabelSelectorRequirement addValuesItem(String valuesItem) { * @return values **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") public List getValues() { return values; } 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 d05e2a1de7..dd84b7cd93 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LeaseSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * Lease defines a lease concept. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Lease defines a lease concept.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1Lease apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1Lease kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1Lease metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1Lease spec(V1LeaseSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LeaseSpec getSpec() { return spec; } 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 9cdf25720c..0739fecb4c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Lease; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * LeaseList is a list of Lease objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LeaseList is a list of Lease objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1LeaseList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1LeaseList addItemsItem(V1Lease itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1LeaseList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1LeaseList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 cbf9a97343..886c8a8a09 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * LeaseSpec is a specification of a Lease. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LeaseSpec is a specification of a Lease.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) @@ -92,6 +95,7 @@ public V1LeaseSpec acquireTime(OffsetDateTime acquireTime) { * @return acquireTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "acquireTime is a time when the current lease was acquired.") public OffsetDateTime getAcquireTime() { return acquireTime; } @@ -111,6 +115,7 @@ public V1LeaseSpec holderIdentity(String holderIdentity) { * @return holderIdentity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.") public String getHolderIdentity() { return holderIdentity; } @@ -130,6 +135,7 @@ public V1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { * @return leaseDurationSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.") public Integer getLeaseDurationSeconds() { return leaseDurationSeconds; } @@ -149,6 +155,7 @@ public V1LeaseSpec leaseTransitions(Integer leaseTransitions) { * @return leaseTransitions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "leaseTransitions is the number of transitions of a lease between holders.") public Integer getLeaseTransitions() { return leaseTransitions; } @@ -168,6 +175,7 @@ public V1LeaseSpec preferredHolder(String preferredHolder) { * @return preferredHolder **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.") public String getPreferredHolder() { return preferredHolder; } @@ -187,6 +195,7 @@ public V1LeaseSpec renewTime(OffsetDateTime renewTime) { * @return renewTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "renewTime is a time when the current holder of a lease has last updated the lease.") public OffsetDateTime getRenewTime() { return renewTime; } @@ -206,6 +215,7 @@ public V1LeaseSpec strategy(String strategy) { * @return strategy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.") public String getStrategy() { return strategy; } 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 ed8b8ca452..9f518592f4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LifecycleHandler; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; @SerializedName(SERIALIZED_NAME_POST_START) @@ -72,6 +75,7 @@ public V1Lifecycle postStart(V1LifecycleHandler postStart) { * @return postStart **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LifecycleHandler getPostStart() { return postStart; } @@ -91,6 +95,7 @@ public V1Lifecycle preStop(V1LifecycleHandler preStop) { * @return preStop **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LifecycleHandler getPreStop() { return preStop; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java index b8ec834754..addb803d1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1HTTPGetAction; import io.kubernetes.client.openapi.models.V1SleepAction; import io.kubernetes.client.openapi.models.V1TCPSocketAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) @@ -83,6 +86,7 @@ public V1LifecycleHandler exec(V1ExecAction exec) { * @return exec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ExecAction getExec() { return exec; } @@ -102,6 +106,7 @@ public V1LifecycleHandler httpGet(V1HTTPGetAction httpGet) { * @return httpGet **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1HTTPGetAction getHttpGet() { return httpGet; } @@ -121,6 +126,7 @@ public V1LifecycleHandler sleep(V1SleepAction sleep) { * @return sleep **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SleepAction getSleep() { return sleep; } @@ -140,6 +146,7 @@ public V1LifecycleHandler tcpSocket(V1TCPSocketAction tcpSocket) { * @return tcpSocket **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TCPSocketAction getTcpSocket() { return tcpSocket; } 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 8751f4106a..aa11bb5865 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LimitRangeSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * LimitRange sets resource usage limits for each kind of resource in a Namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1LimitRange apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1LimitRange kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1LimitRange metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1LimitRange spec(V1LimitRangeSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LimitRangeSpec getSpec() { return spec; } 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 ae1b97476f..58c9062974 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) @@ -98,6 +101,7 @@ public V1LimitRangeItem putDefaultItem(String key, Quantity _defaultItem) { * @return _default **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Default resource requirement limit value by resource name if resource limit is omitted.") public Map getDefault() { return _default; } @@ -125,6 +129,7 @@ public V1LimitRangeItem putDefaultRequestItem(String key, Quantity defaultReques * @return defaultRequest **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.") public Map getDefaultRequest() { return defaultRequest; } @@ -152,6 +157,7 @@ public V1LimitRangeItem putMaxItem(String key, Quantity maxItem) { * @return max **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Max usage constraints on this kind by resource name.") public Map getMax() { return max; } @@ -179,6 +185,7 @@ public V1LimitRangeItem putMaxLimitRequestRatioItem(String key, Quantity maxLimi * @return maxLimitRequestRatio **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.") public Map getMaxLimitRequestRatio() { return maxLimitRequestRatio; } @@ -206,6 +213,7 @@ public V1LimitRangeItem putMinItem(String key, Quantity minItem) { * @return min **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Min usage constraints on this kind by resource name.") public Map getMin() { return min; } @@ -225,6 +233,7 @@ public V1LimitRangeItem type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of resource that this limit applies to.") public String getType() { return type; } 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 47eb44f430..162e96652f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LimitRange; import io.kubernetes.client.openapi.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * LimitRangeList is a list of LimitRange items. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LimitRangeList is a list of LimitRange items.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1LimitRangeList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1LimitRangeList addItemsItem(V1LimitRange itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1LimitRangeList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1LimitRangeList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 424a589edd..83426e98b3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LimitRangeItem; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * LimitRangeSpec defines a min/max usage limit for resources that match on kind. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) @@ -78,6 +81,7 @@ public V1LimitRangeSpec addLimitsItem(V1LimitRangeItem limitsItem) { * @return limits **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Limits is the list of LimitRangeItem objects that are enforced.") public List getLimits() { return limits; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java index f861b662a8..5a0234d920 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1QueuingConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * LimitResponse defines how to handle requests that can not be executed right now. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LimitResponse defines how to handle requests that can not be executed right now.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; @SerializedName(SERIALIZED_NAME_QUEUING) @@ -72,6 +75,7 @@ public V1LimitResponse queuing(V1QueuingConfiguration queuing) { * @return queuing **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1QueuingConfiguration getQueuing() { return queuing; } @@ -91,6 +95,7 @@ public V1LimitResponse type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java index 741bf1e17c..14dc4d3268 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LimitResponse; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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? */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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?") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) @@ -80,6 +83,7 @@ public V1LimitedPriorityLevelConfiguration borrowingLimitPercent(Integer borrowi * @return borrowingLimitPercent **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.") public Integer getBorrowingLimitPercent() { return borrowingLimitPercent; } @@ -99,6 +103,7 @@ public V1LimitedPriorityLevelConfiguration lendablePercent(Integer lendablePerce * @return lendablePercent **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )") public Integer getLendablePercent() { return lendablePercent; } @@ -118,6 +123,7 @@ public V1LimitedPriorityLevelConfiguration limitResponse(V1LimitResponse limitRe * @return limitResponse **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LimitResponse getLimitResponse() { return limitResponse; } @@ -137,6 +143,7 @@ public V1LimitedPriorityLevelConfiguration nominalConcurrencyShares(Integer nomi * @return nominalConcurrencyShares **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. If not specified, this field defaults to a value of 30. Setting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)") public Integer getNominalConcurrencyShares() { return nominalConcurrencyShares; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java index 2fdf9e7b72..156552a317 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * LinuxContainerUser represents user identity information in Linux containers */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LinuxContainerUser represents user identity information in Linux containers") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LinuxContainerUser { public static final String SERIALIZED_NAME_GID = "gid"; @SerializedName(SERIALIZED_NAME_GID) @@ -77,6 +80,7 @@ public V1LinuxContainerUser gid(Long gid) { * @return gid **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "GID is the primary gid initially attached to the first process in the container") public Long getGid() { return gid; } @@ -104,6 +108,7 @@ public V1LinuxContainerUser addSupplementalGroupsItem(Long supplementalGroupsIte * @return supplementalGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "SupplementalGroups are the supplemental groups initially attached to the first process in the container") public List getSupplementalGroups() { return supplementalGroups; } @@ -123,6 +128,7 @@ public V1LinuxContainerUser uid(Long uid) { * @return uid **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "UID is the primary uid initially attached to the first process in the container") public Long getUid() { return uid; } 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 5a36d6f0ce..4ea44ec7f3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; @SerializedName(SERIALIZED_NAME_CONTINUE) @@ -79,6 +82,7 @@ public V1ListMeta _continue(String _continue) { * @return _continue **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.") public String getContinue() { return _continue; } @@ -98,6 +102,7 @@ public V1ListMeta remainingItemCount(Long remainingItemCount) { * @return remainingItemCount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.") public Long getRemainingItemCount() { return remainingItemCount; } @@ -117,6 +122,7 @@ public V1ListMeta resourceVersion(String resourceVersion) { * @return resourceVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency") public String getResourceVersion() { return resourceVersion; } @@ -136,6 +142,7 @@ public V1ListMeta selfLink(String selfLink) { * @return selfLink **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.") public String getSelfLink() { return selfLink; } @@ -258,8 +265,7 @@ public void write(JsonWriter out, V1ListMeta value) throws IOException { @Override public V1ListMeta read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); - // Disable validation so delete API can tolerate non-status return object (graceful deletion) - // validateJsonObject(jsonObj); + validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); } 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 6def31f7f6..49bf7c5052 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PortStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -82,6 +85,7 @@ public V1LoadBalancerIngress hostname(String hostname) { * @return hostname **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)") public String getHostname() { return hostname; } @@ -101,6 +105,7 @@ public V1LoadBalancerIngress ip(String ip) { * @return ip **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)") public String getIp() { return ip; } @@ -120,6 +125,7 @@ public V1LoadBalancerIngress ipMode(String ipMode) { * @return ipMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.") public String getIpMode() { return ipMode; } @@ -147,6 +153,7 @@ public V1LoadBalancerIngress addPortsItem(V1PortStatus portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it") public List getPorts() { return ports; } 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 6e34af834a..8862490afe 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LoadBalancerIngress; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * LoadBalancerStatus represents the status of a load-balancer. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) @@ -78,6 +81,7 @@ public V1LoadBalancerStatus addIngressItem(V1LoadBalancerIngress ingressItem) { * @return ingress **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.") public List getIngress() { return ingress; } 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 94fd1badc0..45bbe9e210 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1LocalObjectReference name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return 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 96f5fdbbc6..1393669344 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1LocalSubjectAccessReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1LocalSubjectAccessReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1LocalSubjectAccessReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1LocalSubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1SubjectAccessReviewSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1LocalSubjectAccessReview status(V1SubjectAccessReviewStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SubjectAccessReviewStatus getStatus() { return status; } 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 b9aa1cfc05..c19a3ec74c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Local represents directly-attached storage with node affinity (Beta feature) */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Local represents directly-attached storage with node affinity (Beta feature)") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -71,6 +74,7 @@ public V1LocalVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.") public String getFsType() { return fsType; } @@ -90,6 +94,7 @@ public V1LocalVolumeSource path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).") public String getPath() { return path; } 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 f3ef3dea88..903601bb4b 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -92,6 +95,7 @@ public V1ManagedFieldsEntry apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.") public String getApiVersion() { return apiVersion; } @@ -111,6 +115,7 @@ public V1ManagedFieldsEntry fieldsType(String fieldsType) { * @return fieldsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"") public String getFieldsType() { return fieldsType; } @@ -130,6 +135,7 @@ public V1ManagedFieldsEntry fieldsV1(Object fieldsV1) { * @return fieldsV1 **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.") public Object getFieldsV1() { return fieldsV1; } @@ -149,6 +155,7 @@ public V1ManagedFieldsEntry manager(String manager) { * @return manager **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Manager is an identifier of the workflow managing these fields.") public String getManager() { return manager; } @@ -168,6 +175,7 @@ public V1ManagedFieldsEntry operation(String operation) { * @return operation **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.") public String getOperation() { return operation; } @@ -187,6 +195,7 @@ public V1ManagedFieldsEntry subresource(String subresource) { * @return subresource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.") public String getSubresource() { return subresource; } @@ -206,6 +215,7 @@ public V1ManagedFieldsEntry time(OffsetDateTime time) { * @return time **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.") public OffsetDateTime getTime() { return time; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java index c2205cdf75..3503b72768 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,6 +74,7 @@ public V1MatchCondition expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } @@ -90,6 +94,7 @@ public V1MatchCondition name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java index d8ce21ed8d..16874bd25d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1NamedRuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -95,6 +98,7 @@ public V1MatchResources addExcludeResourceRulesItem(V1NamedRuleWithOperations ex * @return excludeResourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } @@ -114,6 +118,7 @@ public V1MatchResources matchPolicy(String matchPolicy) { * @return matchPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } @@ -133,6 +138,7 @@ public V1MatchResources namespaceSelector(V1LabelSelector namespaceSelector) { * @return namespaceSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -152,6 +158,7 @@ public V1MatchResources objectSelector(V1LabelSelector objectSelector) { * @return objectSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -179,6 +186,7 @@ public V1MatchResources addResourceRulesItem(V1NamedRuleWithOperations resourceR * @return resourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java index 4e3cfd40d5..2e49784ae2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ModifyVolumeStatus { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -71,6 +74,7 @@ public V1ModifyVolumeStatus status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.") public String getStatus() { return status; } @@ -90,6 +94,7 @@ public V1ModifyVolumeStatus targetVolumeAttributesClassName(String targetVolumeA * @return targetVolumeAttributesClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled") public String getTargetVolumeAttributesClassName() { return targetVolumeAttributesClassName; } 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 5f162a0e5c..4250813655 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1MatchCondition; import io.kubernetes.client.openapi.models.V1RuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * MutatingWebhook describes an admission webhook and the resources and operations it applies to. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -125,6 +128,7 @@ public V1MutatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVe * @return admissionReviewVersions **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") public List getAdmissionReviewVersions() { return admissionReviewVersions; } @@ -144,6 +148,7 @@ public V1MutatingWebhook clientConfig(AdmissionregistrationV1WebhookClientConfig * @return clientConfig **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return clientConfig; } @@ -163,6 +168,7 @@ public V1MutatingWebhook failurePolicy(String failurePolicy) { * @return failurePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -190,6 +196,7 @@ public V1MutatingWebhook addMatchConditionsItem(V1MatchCondition matchConditions * @return matchConditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") public List getMatchConditions() { return matchConditions; } @@ -209,6 +216,7 @@ public V1MutatingWebhook matchPolicy(String matchPolicy) { * @return matchPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } @@ -228,6 +236,7 @@ public V1MutatingWebhook name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") public String getName() { return name; } @@ -247,6 +256,7 @@ public V1MutatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) { * @return namespaceSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -266,6 +276,7 @@ public V1MutatingWebhook objectSelector(V1LabelSelector objectSelector) { * @return objectSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -285,6 +296,7 @@ public V1MutatingWebhook reinvocationPolicy(String reinvocationPolicy) { * @return reinvocationPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\".") public String getReinvocationPolicy() { return reinvocationPolicy; } @@ -312,6 +324,7 @@ public V1MutatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { * @return rules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") public List getRules() { return rules; } @@ -331,6 +344,7 @@ public V1MutatingWebhook sideEffects(String sideEffects) { * @return sideEffects **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.") public String getSideEffects() { return sideEffects; } @@ -350,6 +364,7 @@ public V1MutatingWebhook timeoutSeconds(Integer timeoutSeconds) { * @return timeoutSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") public Integer getTimeoutSeconds() { return timeoutSeconds; } 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 71dcc5bf3a..a9742062d0 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1MutatingWebhook; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1MutatingWebhookConfiguration apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -102,6 +106,7 @@ public V1MutatingWebhookConfiguration kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -121,6 +126,7 @@ public V1MutatingWebhookConfiguration metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -148,6 +154,7 @@ public V1MutatingWebhookConfiguration addWebhooksItem(V1MutatingWebhook webhooks * @return webhooks **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") public List getWebhooks() { return webhooks; } 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 d08bc6c660..6bacd49297 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1MutatingWebhookConfigurationList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1MutatingWebhookConfigurationList addItemsItem(V1MutatingWebhookConfigur * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of MutatingWebhookConfiguration.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1MutatingWebhookConfigurationList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1MutatingWebhookConfigurationList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 a059780824..692b3d307f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -75,6 +78,7 @@ public V1NFSVolumeSource path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") public String getPath() { return path; } @@ -94,6 +98,7 @@ public V1NFSVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") public Boolean getReadOnly() { return readOnly; } @@ -113,6 +118,7 @@ public V1NFSVolumeSource server(String server) { * @return server **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") public String getServer() { return server; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java index 702f830d9b..f69aa8643b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -97,6 +100,7 @@ public V1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -124,6 +128,7 @@ public V1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem) { * @return apiVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -151,6 +156,7 @@ public V1NamedRuleWithOperations addOperationsItem(String operationsItem) { * @return operations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -178,6 +184,7 @@ public V1NamedRuleWithOperations addResourceNamesItem(String resourceNamesItem) * @return resourceNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } @@ -205,6 +212,7 @@ public V1NamedRuleWithOperations addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } @@ -224,6 +232,7 @@ public V1NamedRuleWithOperations scope(String scope) { * @return scope **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") public String getScope() { return scope; } 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 edb456843d..6638fd8364 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1NamespaceSpec; import io.kubernetes.client.openapi.models.V1NamespaceStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Namespace provides a scope for Names. Use of multiple namespaces is optional. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Namespace apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Namespace kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Namespace metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Namespace spec(V1NamespaceSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NamespaceSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Namespace status(V1NamespaceStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NamespaceStatus getStatus() { return status; } 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 4765ced255..965c111a3d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * NamespaceCondition contains details about state of namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NamespaceCondition contains details about state of namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1NamespaceCondition lastTransitionTime(OffsetDateTime lastTransitionTime * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @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 OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1NamespaceCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1NamespaceCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1NamespaceCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1NamespaceCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of namespace controller condition.") public String getType() { return type; } 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 e2d5360ab5..100a3d528d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Namespace; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * NamespaceList is a list of Namespaces. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NamespaceList is a list of Namespaces.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1NamespaceList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1NamespaceList addItemsItem(V1Namespace itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1NamespaceList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1NamespaceList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 91ef00a2f2..5afe32d5c2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * NamespaceSpec describes the attributes on a Namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) @@ -77,6 +80,7 @@ public V1NamespaceSpec addFinalizersItem(String finalizersItem) { * @return finalizers **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/") public List getFinalizers() { return finalizers; } 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 bc4f45935c..c17f0ecc55 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NamespaceCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * NamespaceStatus is information about the current status of a Namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -82,6 +85,7 @@ public V1NamespaceStatus addConditionsItem(V1NamespaceCondition conditionsItem) * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents the latest available observations of a namespace's current state.") public List getConditions() { return conditions; } @@ -101,6 +105,7 @@ public V1NamespaceStatus phase(String phase) { * @return phase **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/") public String getPhase() { return phase; } 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 5f483b781f..34adb8bb6e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NetworkPolicySpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * NetworkPolicy describes what network traffic is allowed for a set of Pods */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1NetworkPolicy apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1NetworkPolicy kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1NetworkPolicy metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1NetworkPolicy spec(V1NetworkPolicySpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NetworkPolicySpec getSpec() { return spec; } 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 90b1232808..19b62a70ef 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NetworkPolicyPeer; import io.kubernetes.client.openapi.models.V1NetworkPolicyPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * 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 */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) @@ -83,6 +86,7 @@ public V1NetworkPolicyEgressRule addPortsItem(V1NetworkPolicyPort portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") public List getPorts() { return ports; } @@ -110,6 +114,7 @@ public V1NetworkPolicyEgressRule addToItem(V1NetworkPolicyPeer toItem) { * @return to **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.") public List getTo() { return to; } 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 e2f31b9f49..0bbadefffe 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NetworkPolicyPeer; import io.kubernetes.client.openapi.models.V1NetworkPolicyPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) @@ -83,6 +86,7 @@ public V1NetworkPolicyIngressRule addFromItem(V1NetworkPolicyPeer fromItem) { * @return from **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.") public List getFrom() { return from; } @@ -110,6 +114,7 @@ public V1NetworkPolicyIngressRule addPortsItem(V1NetworkPolicyPort portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") public List getPorts() { return ports; } 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 ac7ecec6be..694f5017a8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1NetworkPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * NetworkPolicyList is a list of NetworkPolicy objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1NetworkPolicyList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1NetworkPolicyList addItemsItem(V1NetworkPolicy itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1NetworkPolicyList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1NetworkPolicyList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 2e4273463b..fbb5017d73 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1IPBlock; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; @SerializedName(SERIALIZED_NAME_IP_BLOCK) @@ -77,6 +80,7 @@ public V1NetworkPolicyPeer ipBlock(V1IPBlock ipBlock) { * @return ipBlock **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1IPBlock getIpBlock() { return ipBlock; } @@ -96,6 +100,7 @@ public V1NetworkPolicyPeer namespaceSelector(V1LabelSelector namespaceSelector) * @return namespaceSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -115,6 +120,7 @@ public V1NetworkPolicyPeer podSelector(V1LabelSelector podSelector) { * @return podSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getPodSelector() { return podSelector; } 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 3b4ab804c6..98f98e8ba6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * NetworkPolicyPort describes a port to allow traffic on */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @SerializedName(SERIALIZED_NAME_END_PORT) @@ -76,6 +79,7 @@ public V1NetworkPolicyPort endPort(Integer endPort) { * @return endPort **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.") public Integer getEndPort() { return endPort; } @@ -95,6 +99,7 @@ public V1NetworkPolicyPort port(IntOrString port) { * @return port **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getPort() { return port; } @@ -114,6 +119,7 @@ public V1NetworkPolicyPort protocol(String protocol) { * @return protocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.") public String getProtocol() { return protocol; } 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 45ca29ffd9..989ff684f2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule; import io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * NetworkPolicySpec provides the specification of a NetworkPolicy */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) @@ -92,6 +95,7 @@ public V1NetworkPolicySpec addEgressItem(V1NetworkPolicyEgressRule egressItem) { * @return egress **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8") public List getEgress() { return egress; } @@ -119,6 +123,7 @@ public V1NetworkPolicySpec addIngressItem(V1NetworkPolicyIngressRule ingressItem * @return ingress **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)") public List getIngress() { return ingress; } @@ -138,6 +143,7 @@ public V1NetworkPolicySpec podSelector(V1LabelSelector podSelector) { * @return podSelector **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1LabelSelector getPodSelector() { return podSelector; } @@ -165,6 +171,7 @@ public V1NetworkPolicySpec addPolicyTypesItem(String policyTypesItem) { * @return policyTypes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8") public List getPolicyTypes() { return policyTypes; } 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 2800b13feb..b7dc6546fc 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1NodeSpec; import io.kubernetes.client.openapi.models.V1NodeStatus; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Node apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Node kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Node metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Node spec(V1NodeSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Node status(V1NodeStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeStatus getStatus() { return status; } 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 85dc988304..87c0023a53 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * NodeAddress contains information for the node's address. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeAddress contains information for the node's address.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) @@ -71,6 +74,7 @@ public V1NodeAddress address(String address) { * @return address **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The node address.") public String getAddress() { return address; } @@ -90,6 +94,7 @@ public V1NodeAddress type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Node address type, one of Hostname, ExternalIP or InternalIP.") public String getType() { return type; } 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 70f85bc6b9..a2b723060e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * Node affinity is a group of node affinity scheduling rules. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) @@ -83,6 +86,7 @@ public V1NodeAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1P * @return preferredDuringSchedulingIgnoredDuringExecution **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.") public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } @@ -102,6 +106,7 @@ public V1NodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1NodeSelec * @return requiredDuringSchedulingIgnoredDuringExecution **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } 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 90e6d34ab0..53cd7f8060 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * NodeCondition contains condition information for a node. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeCondition contains condition information for a node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) @@ -88,6 +91,7 @@ public V1NodeCondition lastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { * @return lastHeartbeatTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time we got an update on a given condition.") public OffsetDateTime getLastHeartbeatTime() { return lastHeartbeatTime; } @@ -107,6 +111,7 @@ public V1NodeCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transit from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -126,6 +131,7 @@ public V1NodeCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Human readable message indicating details about last transition.") public String getMessage() { return message; } @@ -145,6 +151,7 @@ public V1NodeCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "(brief) reason for the condition's last transition.") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1NodeCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1NodeCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of node condition.") public String getType() { return type; } 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 ba2deefe7b..ca09371fd4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) @@ -68,6 +71,7 @@ public V1NodeConfigSource configMap(V1ConfigMapNodeConfigSource configMap) { * @return configMap **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ConfigMapNodeConfigSource getConfigMap() { return 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 0081e2622b..029322d519 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeConfigSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -80,6 +83,7 @@ public V1NodeConfigStatus active(V1NodeConfigSource active) { * @return active **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeConfigSource getActive() { return active; } @@ -99,6 +103,7 @@ public V1NodeConfigStatus assigned(V1NodeConfigSource assigned) { * @return assigned **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeConfigSource getAssigned() { return assigned; } @@ -118,6 +123,7 @@ public V1NodeConfigStatus error(String error) { * @return error **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.") public String getError() { return error; } @@ -137,6 +143,7 @@ public V1NodeConfigStatus lastKnownGood(V1NodeConfigSource lastKnownGood) { * @return lastKnownGood **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeConfigSource getLastKnownGood() { return lastKnownGood; } 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 995b4b4b17..786b517933 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1DaemonEndpoint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) @@ -68,6 +71,7 @@ public V1NodeDaemonEndpoints kubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { * @return kubeletEndpoint **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DaemonEndpoint getKubeletEndpoint() { return kubeletEndpoint; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java index f5d28341da..407a96b3aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeFeatures { public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) @@ -67,6 +70,7 @@ public V1NodeFeatures supplementalGroupsPolicy(Boolean supplementalGroupsPolicy) * @return supplementalGroupsPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.") public Boolean getSupplementalGroupsPolicy() { return supplementalGroupsPolicy; } 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 60d7bc04df..c5cb29da48 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Node; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * NodeList is the whole list of all Nodes which have been registered with master. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeList is the whole list of all Nodes which have been registered with master.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1NodeList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1NodeList addItemsItem(V1Node itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of nodes") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1NodeList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1NodeList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java index a0ddbc7ff4..adb9770f9c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeRuntimeHandlerFeatures; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * NodeRuntimeHandler is a set of runtime handler information. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeRuntimeHandler is a set of runtime handler information.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeRuntimeHandler { public static final String SERIALIZED_NAME_FEATURES = "features"; @SerializedName(SERIALIZED_NAME_FEATURES) @@ -72,6 +75,7 @@ public V1NodeRuntimeHandler features(V1NodeRuntimeHandlerFeatures features) { * @return features **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeRuntimeHandlerFeatures getFeatures() { return features; } @@ -91,6 +95,7 @@ public V1NodeRuntimeHandler name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Runtime handler name. Empty for the default runtime handler.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java index 6271fdeac4..471e06b828 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeRuntimeHandlerFeatures { public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS = "recursiveReadOnlyMounts"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS) @@ -71,6 +74,7 @@ public V1NodeRuntimeHandlerFeatures recursiveReadOnlyMounts(Boolean recursiveRea * @return recursiveReadOnlyMounts **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.") public Boolean getRecursiveReadOnlyMounts() { return recursiveReadOnlyMounts; } @@ -90,6 +94,7 @@ public V1NodeRuntimeHandlerFeatures userNamespaces(Boolean userNamespaces) { * @return userNamespaces **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.") public Boolean getUserNamespaces() { return userNamespaces; } 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 e8b8713eaf..18915c015b 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelectorTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) @@ -78,6 +81,7 @@ public V1NodeSelector addNodeSelectorTermsItem(V1NodeSelectorTerm nodeSelectorTe * @return nodeSelectorTerms **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Required. A list of node selector terms. The terms are ORed.") public List getNodeSelectorTerms() { return 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 ce49edab7a..a088481638 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -77,6 +80,7 @@ public V1NodeSelectorRequirement key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The label key that the selector applies to.") public String getKey() { return key; } @@ -96,6 +100,7 @@ public V1NodeSelectorRequirement operator(String operator) { * @return operator **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.") public String getOperator() { return operator; } @@ -123,6 +128,7 @@ public V1NodeSelectorRequirement addValuesItem(String valuesItem) { * @return values **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.") public List getValues() { return values; } 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 19e7eb4d13..5f8af3189f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) @@ -82,6 +85,7 @@ public V1NodeSelectorTerm addMatchExpressionsItem(V1NodeSelectorRequirement matc * @return matchExpressions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's labels.") public List getMatchExpressions() { return matchExpressions; } @@ -109,6 +113,7 @@ public V1NodeSelectorTerm addMatchFieldsItem(V1NodeSelectorRequirement matchFiel * @return matchFields **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's fields.") public List getMatchFields() { return matchFields; } 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 21e17b8109..881b66c993 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeConfigSource; import io.kubernetes.client.openapi.models.V1Taint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * NodeSpec describes the attributes that a node is created with. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeSpec describes the attributes that a node is created with.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) @@ -95,6 +98,7 @@ public V1NodeSpec configSource(V1NodeConfigSource configSource) { * @return configSource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeConfigSource getConfigSource() { return configSource; } @@ -114,6 +118,7 @@ public V1NodeSpec externalID(String externalID) { * @return externalID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966") public String getExternalID() { return externalID; } @@ -133,6 +138,7 @@ public V1NodeSpec podCIDR(String podCIDR) { * @return podCIDR **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PodCIDR represents the pod IP range assigned to the node.") public String getPodCIDR() { return podCIDR; } @@ -160,6 +166,7 @@ public V1NodeSpec addPodCIDRsItem(String podCIDRsItem) { * @return podCIDRs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.") public List getPodCIDRs() { return podCIDRs; } @@ -179,6 +186,7 @@ public V1NodeSpec providerID(String providerID) { * @return providerID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ID of the node assigned by the cloud provider in the format: ://") public String getProviderID() { return providerID; } @@ -206,6 +214,7 @@ public V1NodeSpec addTaintsItem(V1Taint taintsItem) { * @return taints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the node's taints.") public List getTaints() { return taints; } @@ -225,6 +234,7 @@ public V1NodeSpec unschedulable(Boolean unschedulable) { * @return unschedulable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration") public Boolean getUnschedulable() { return unschedulable; } 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 be0f963fb4..bbd2caace7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +28,8 @@ import io.kubernetes.client.openapi.models.V1NodeFeatures; import io.kubernetes.client.openapi.models.V1NodeRuntimeHandler; import io.kubernetes.client.openapi.models.V1NodeSystemInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -62,7 +64,8 @@ /** * NodeStatus is information about the current status of a node. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeStatus is information about the current status of a node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -137,6 +140,7 @@ public V1NodeStatus addAddressesItem(V1NodeAddress addressesItem) { * @return addresses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).") public List getAddresses() { return addresses; } @@ -164,6 +168,7 @@ public V1NodeStatus putAllocatableItem(String key, Quantity allocatableItem) { * @return allocatable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.") public Map getAllocatable() { return allocatable; } @@ -191,6 +196,7 @@ public V1NodeStatus putCapacityItem(String key, Quantity capacityItem) { * @return capacity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity") public Map getCapacity() { return capacity; } @@ -218,6 +224,7 @@ public V1NodeStatus addConditionsItem(V1NodeCondition conditionsItem) { * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition") public List getConditions() { return conditions; } @@ -237,6 +244,7 @@ public V1NodeStatus config(V1NodeConfigStatus config) { * @return config **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeConfigStatus getConfig() { return config; } @@ -256,6 +264,7 @@ public V1NodeStatus daemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { * @return daemonEndpoints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeDaemonEndpoints getDaemonEndpoints() { return daemonEndpoints; } @@ -275,6 +284,7 @@ public V1NodeStatus features(V1NodeFeatures features) { * @return features **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeFeatures getFeatures() { return features; } @@ -302,6 +312,7 @@ public V1NodeStatus addImagesItem(V1ContainerImage imagesItem) { * @return images **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of container images on this node") public List getImages() { return images; } @@ -321,6 +332,7 @@ public V1NodeStatus nodeInfo(V1NodeSystemInfo nodeInfo) { * @return nodeInfo **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeSystemInfo getNodeInfo() { return nodeInfo; } @@ -340,6 +352,7 @@ public V1NodeStatus phase(String phase) { * @return phase **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.") public String getPhase() { return phase; } @@ -367,6 +380,7 @@ public V1NodeStatus addRuntimeHandlersItem(V1NodeRuntimeHandler runtimeHandlersI * @return runtimeHandlers **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The available runtime handlers.") public List getRuntimeHandlers() { return runtimeHandlers; } @@ -394,6 +408,7 @@ public V1NodeStatus addVolumesAttachedItem(V1AttachedVolume volumesAttachedItem) * @return volumesAttached **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of volumes that are attached to the node.") public List getVolumesAttached() { return volumesAttached; } @@ -421,6 +436,7 @@ public V1NodeStatus addVolumesInUseItem(String volumesInUseItem) { * @return volumesInUse **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of attachable volumes in use (mounted) by the node.") public List getVolumesInUse() { return volumesInUse; } 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 f95421dc7d..53b32e6213 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) @@ -103,6 +106,7 @@ public V1NodeSystemInfo architecture(String architecture) { * @return architecture **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The Architecture reported by the node") public String getArchitecture() { return architecture; } @@ -122,6 +126,7 @@ public V1NodeSystemInfo bootID(String bootID) { * @return bootID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Boot ID reported by the node.") public String getBootID() { return bootID; } @@ -141,6 +146,7 @@ public V1NodeSystemInfo containerRuntimeVersion(String containerRuntimeVersion) * @return containerRuntimeVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).") public String getContainerRuntimeVersion() { return containerRuntimeVersion; } @@ -160,6 +166,7 @@ public V1NodeSystemInfo kernelVersion(String kernelVersion) { * @return kernelVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).") public String getKernelVersion() { return kernelVersion; } @@ -179,6 +186,7 @@ public V1NodeSystemInfo kubeProxyVersion(String kubeProxyVersion) { * @return kubeProxyVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Deprecated: KubeProxy Version reported by the node.") public String getKubeProxyVersion() { return kubeProxyVersion; } @@ -198,6 +206,7 @@ public V1NodeSystemInfo kubeletVersion(String kubeletVersion) { * @return kubeletVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kubelet Version reported by the node.") public String getKubeletVersion() { return kubeletVersion; } @@ -217,6 +226,7 @@ public V1NodeSystemInfo machineID(String machineID) { * @return machineID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html") public String getMachineID() { return machineID; } @@ -236,6 +246,7 @@ public V1NodeSystemInfo operatingSystem(String operatingSystem) { * @return operatingSystem **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The Operating System reported by the node") public String getOperatingSystem() { return operatingSystem; } @@ -255,6 +266,7 @@ public V1NodeSystemInfo osImage(String osImage) { * @return osImage **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).") public String getOsImage() { return osImage; } @@ -274,6 +286,7 @@ public V1NodeSystemInfo systemUUID(String systemUUID) { * @return systemUUID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid") public String getSystemUUID() { return systemUUID; } 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 555adfba33..a68de05cb3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -71,6 +74,7 @@ public V1NonResourceAttributes path(String path) { * @return path **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Path is the URL path of the request") public String getPath() { return path; } @@ -90,6 +94,7 @@ public V1NonResourceAttributes verb(String verb) { * @return verb **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Verb is the standard HTTP verb") public String getVerb() { return verb; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java index 1e3fafe2d1..a22b9eee2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) @@ -81,6 +84,7 @@ public V1NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURLsItem * @return nonResourceURLs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/_*\" also matches nothing - \"/healthz/_*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.") public List getNonResourceURLs() { return nonResourceURLs; } @@ -108,6 +112,7 @@ public V1NonResourcePolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.") public List getVerbs() { return verbs; } 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 2af058ef0b..8a78b0de9c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * NonResourceRule holds information that describes a rule for the non-resource */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) @@ -81,6 +84,7 @@ public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) { * @return nonResourceURLs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.") public List getNonResourceURLs() { return nonResourceURLs; } @@ -108,6 +112,7 @@ public V1NonResourceRule addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.") public List getVerbs() { return verbs; } 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 708d0a22d4..82930e9ad8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ObjectFieldSelector selects an APIVersioned field of an object. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,6 +74,7 @@ public V1ObjectFieldSelector apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") public String getApiVersion() { return apiVersion; } @@ -90,6 +94,7 @@ public V1ObjectFieldSelector fieldPath(String fieldPath) { * @return fieldPath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Path of the field to select in the specified API version.") public String getFieldPath() { return fieldPath; } 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 f5def2ec0e..ec242992d6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ManagedFieldsEntry; import io.kubernetes.client.openapi.models.V1OwnerReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -55,7 +57,8 @@ /** * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) @@ -138,6 +141,7 @@ public V1ObjectMeta putAnnotationsItem(String key, String annotationsItem) { * @return annotations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations") public Map getAnnotations() { return annotations; } @@ -157,6 +161,7 @@ public V1ObjectMeta creationTimestamp(OffsetDateTime creationTimestamp) { * @return creationTimestamp **/ @jakarta.annotation.Nullable + @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 OffsetDateTime getCreationTimestamp() { return creationTimestamp; } @@ -176,6 +181,7 @@ public V1ObjectMeta deletionGracePeriodSeconds(Long deletionGracePeriodSeconds) * @return deletionGracePeriodSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") public Long getDeletionGracePeriodSeconds() { return deletionGracePeriodSeconds; } @@ -195,6 +201,7 @@ public V1ObjectMeta deletionTimestamp(OffsetDateTime deletionTimestamp) { * @return deletionTimestamp **/ @jakarta.annotation.Nullable + @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 OffsetDateTime getDeletionTimestamp() { return deletionTimestamp; } @@ -222,6 +229,7 @@ public V1ObjectMeta addFinalizersItem(String finalizersItem) { * @return finalizers **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") public List getFinalizers() { return finalizers; } @@ -241,6 +249,7 @@ public V1ObjectMeta generateName(String generateName) { * @return generateName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency") public String getGenerateName() { return generateName; } @@ -260,6 +269,7 @@ public V1ObjectMeta generation(Long generation) { * @return generation **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.") public Long getGeneration() { return generation; } @@ -287,6 +297,7 @@ public V1ObjectMeta putLabelsItem(String key, String labelsItem) { * @return labels **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels") public Map getLabels() { return labels; } @@ -314,6 +325,7 @@ public V1ObjectMeta addManagedFieldsItem(V1ManagedFieldsEntry managedFieldsItem) * @return managedFields **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.") public List getManagedFields() { return managedFields; } @@ -333,6 +345,7 @@ public V1ObjectMeta name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names") public String getName() { return name; } @@ -352,6 +365,7 @@ public V1ObjectMeta namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces") public String getNamespace() { return namespace; } @@ -379,6 +393,7 @@ public V1ObjectMeta addOwnerReferencesItem(V1OwnerReference ownerReferencesItem) * @return ownerReferences **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.") public List getOwnerReferences() { return ownerReferences; } @@ -398,6 +413,7 @@ public V1ObjectMeta resourceVersion(String resourceVersion) { * @return resourceVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency") public String getResourceVersion() { return resourceVersion; } @@ -417,6 +433,7 @@ public V1ObjectMeta selfLink(String selfLink) { * @return selfLink **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.") public String getSelfLink() { return selfLink; } @@ -436,6 +453,7 @@ public V1ObjectMeta uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids") public String getUid() { return uid; } 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 3775f796c1..b71c3c8067 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ObjectReference contains enough information to let you inspect or modify the referred object. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ObjectReference contains enough information to let you inspect or modify the referred object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -91,6 +94,7 @@ public V1ObjectReference apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "API version of the referent.") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ObjectReference fieldPath(String fieldPath) { * @return fieldPath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.") public String getFieldPath() { return fieldPath; } @@ -129,6 +134,7 @@ public V1ObjectReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ObjectReference name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -167,6 +174,7 @@ public V1ObjectReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") public String getNamespace() { return namespace; } @@ -186,6 +194,7 @@ public V1ObjectReference resourceVersion(String resourceVersion) { * @return resourceVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency") public String getResourceVersion() { return resourceVersion; } @@ -205,6 +214,7 @@ public V1ObjectReference uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids") public String getUid() { return uid; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java index 3fc2a25e4c..b98bb17cd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * Overhead structure represents the resource overhead associated with running a pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Overhead structure represents the resource overhead associated with running a pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) @@ -78,6 +81,7 @@ public V1Overhead putPodFixedItem(String key, Quantity podFixedItem) { * @return podFixed **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "podFixed represents the fixed resource overhead associated with running a pod.") public Map getPodFixed() { return podFixed; } 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 e7bf1bd6db..022a2eb578 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -87,6 +90,7 @@ public V1OwnerReference apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "API version of the referent.") public String getApiVersion() { return apiVersion; } @@ -106,6 +110,7 @@ public V1OwnerReference blockOwnerDeletion(Boolean blockOwnerDeletion) { * @return blockOwnerDeletion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.") public Boolean getBlockOwnerDeletion() { return blockOwnerDeletion; } @@ -125,6 +130,7 @@ public V1OwnerReference controller(Boolean controller) { * @return controller **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If true, this reference points to the managing controller.") public Boolean getController() { return controller; } @@ -144,6 +150,7 @@ public V1OwnerReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } @@ -163,6 +170,7 @@ public V1OwnerReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names") public String getName() { return name; } @@ -182,6 +190,7 @@ public V1OwnerReference uid(String uid) { * @return uid **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids") public String getUid() { return uid; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java index 0b5678e788..b17558fbd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ParamKind is a tuple of Group Kind and Version. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,6 +74,7 @@ public V1ParamKind apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } @@ -90,6 +94,7 @@ public V1ParamKind kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java index 4c415c0840..3c68086f91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -80,6 +83,7 @@ public V1ParamRef name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.") public String getName() { return name; } @@ -99,6 +103,7 @@ public V1ParamRef namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.") public String getNamespace() { return namespace; } @@ -118,6 +123,7 @@ public V1ParamRef parameterNotFoundAction(String parameterNotFoundAction) { * @return parameterNotFoundAction **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required") public String getParameterNotFoundAction() { return parameterNotFoundAction; } @@ -137,6 +143,7 @@ public V1ParamRef selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } 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 ae7996182b..9af30d734d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeSpec; import io.kubernetes.client.openapi.models.V1PersistentVolumeStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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 */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1PersistentVolume apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1PersistentVolume kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1PersistentVolume metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1PersistentVolume spec(V1PersistentVolumeSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PersistentVolumeSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1PersistentVolume status(V1PersistentVolumeStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PersistentVolumeStatus getStatus() { return status; } 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 c8bbb7210b..6de72d400d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PersistentVolumeClaim is a user's request for and claim to a persistent volume */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1PersistentVolumeClaim apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1PersistentVolumeClaim kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1PersistentVolumeClaim metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1PersistentVolumeClaim spec(V1PersistentVolumeClaimSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PersistentVolumeClaimSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1PersistentVolumeClaim status(V1PersistentVolumeClaimStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PersistentVolumeClaimStatus getStatus() { return status; } 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 9e15b16a91..285450c159 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * PersistentVolumeClaimCondition contains details about state of pvc */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeClaimCondition contains details about state of pvc") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -88,6 +91,7 @@ public V1PersistentVolumeClaimCondition lastProbeTime(OffsetDateTime lastProbeTi * @return lastProbeTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastProbeTime is the time we probed the condition.") public OffsetDateTime getLastProbeTime() { return lastProbeTime; } @@ -107,6 +111,7 @@ public V1PersistentVolumeClaimCondition lastTransitionTime(OffsetDateTime lastTr * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastTransitionTime is the time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -126,6 +131,7 @@ public V1PersistentVolumeClaimCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "message is the human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -145,6 +151,7 @@ public V1PersistentVolumeClaimCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1PersistentVolumeClaimCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1PersistentVolumeClaimCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getType() { return type; } 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 60f3cf3ab5..5d8fe42d21 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaim; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1PersistentVolumeClaimList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1PersistentVolumeClaimList addItemsItem(V1PersistentVolumeClaim itemsIte * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1PersistentVolumeClaimList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1PersistentVolumeClaimList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 6861eafa16..a08e55f0f3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1TypedLocalObjectReference; import io.kubernetes.client.openapi.models.V1TypedObjectReference; import io.kubernetes.client.openapi.models.V1VolumeResourceRequirements; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -113,6 +116,7 @@ public V1PersistentVolumeClaimSpec addAccessModesItem(String accessModesItem) { * @return accessModes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") public List getAccessModes() { return accessModes; } @@ -132,6 +136,7 @@ public V1PersistentVolumeClaimSpec dataSource(V1TypedLocalObjectReference dataSo * @return dataSource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TypedLocalObjectReference getDataSource() { return dataSource; } @@ -151,6 +156,7 @@ public V1PersistentVolumeClaimSpec dataSourceRef(V1TypedObjectReference dataSour * @return dataSourceRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TypedObjectReference getDataSourceRef() { return dataSourceRef; } @@ -170,6 +176,7 @@ public V1PersistentVolumeClaimSpec resources(V1VolumeResourceRequirements resour * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VolumeResourceRequirements getResources() { return resources; } @@ -189,6 +196,7 @@ public V1PersistentVolumeClaimSpec selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } @@ -208,6 +216,7 @@ public V1PersistentVolumeClaimSpec storageClassName(String storageClassName) { * @return storageClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1") public String getStorageClassName() { return storageClassName; } @@ -227,6 +236,7 @@ public V1PersistentVolumeClaimSpec volumeAttributesClassName(String volumeAttrib * @return volumeAttributesClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).") public String getVolumeAttributesClassName() { return volumeAttributesClassName; } @@ -246,6 +256,7 @@ public V1PersistentVolumeClaimSpec volumeMode(String volumeMode) { * @return volumeMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.") public String getVolumeMode() { return volumeMode; } @@ -265,6 +276,7 @@ public V1PersistentVolumeClaimSpec volumeName(String volumeName) { * @return volumeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeName is the binding reference to the PersistentVolume backing this claim.") public String getVolumeName() { return volumeName; } 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 b271ffacd6..8c5fa33d43 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ModifyVolumeStatus; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -55,7 +57,8 @@ /** * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -110,6 +113,7 @@ public V1PersistentVolumeClaimStatus addAccessModesItem(String accessModesItem) * @return accessModes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") public List getAccessModes() { return accessModes; } @@ -137,6 +141,7 @@ public V1PersistentVolumeClaimStatus putAllocatedResourceStatusesItem(String key * @return allocatedResourceStatuses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.") public Map getAllocatedResourceStatuses() { return allocatedResourceStatuses; } @@ -164,6 +169,7 @@ public V1PersistentVolumeClaimStatus putAllocatedResourcesItem(String key, Quant * @return allocatedResources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.") public Map getAllocatedResources() { return allocatedResources; } @@ -191,6 +197,7 @@ public V1PersistentVolumeClaimStatus putCapacityItem(String key, Quantity capaci * @return capacity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "capacity represents the actual resources of the underlying volume.") public Map getCapacity() { return capacity; } @@ -218,6 +225,7 @@ public V1PersistentVolumeClaimStatus addConditionsItem(V1PersistentVolumeClaimCo * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.") public List getConditions() { return conditions; } @@ -237,6 +245,7 @@ public V1PersistentVolumeClaimStatus currentVolumeAttributesClassName(String cur * @return currentVolumeAttributesClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).") public String getCurrentVolumeAttributesClassName() { return currentVolumeAttributesClassName; } @@ -256,6 +265,7 @@ public V1PersistentVolumeClaimStatus modifyVolumeStatus(V1ModifyVolumeStatus mod * @return modifyVolumeStatus **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ModifyVolumeStatus getModifyVolumeStatus() { return modifyVolumeStatus; } @@ -275,6 +285,7 @@ public V1PersistentVolumeClaimStatus phase(String phase) { * @return phase **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "phase represents the current phase of PersistentVolumeClaim.") public String getPhase() { return phase; } 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 7ac0b06b1b..0e31e7c5e7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -73,6 +76,7 @@ public V1PersistentVolumeClaimTemplate metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -92,6 +96,7 @@ public V1PersistentVolumeClaimTemplate spec(V1PersistentVolumeClaimSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PersistentVolumeClaimSpec getSpec() { return spec; } 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 2e8f51bfce..0467628aa8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; @SerializedName(SERIALIZED_NAME_CLAIM_NAME) @@ -71,6 +74,7 @@ public V1PersistentVolumeClaimVolumeSource claimName(String claimName) { * @return claimName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") public String getClaimName() { return claimName; } @@ -90,6 +94,7 @@ public V1PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.") public Boolean getReadOnly() { return readOnly; } 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 74f5e05dc2..ae52add012 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PersistentVolume; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PersistentVolumeList is a list of PersistentVolume items. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1PersistentVolumeList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1PersistentVolumeList addItemsItem(V1PersistentVolume itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1PersistentVolumeList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1PersistentVolumeList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 3fbf636aa3..9ef834a885 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -43,6 +43,8 @@ import io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource; import io.kubernetes.client.openapi.models.V1VolumeNodeAffinity; import io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -77,7 +79,8 @@ /** * PersistentVolumeSpec is the specification of a persistent volume. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -224,6 +227,7 @@ public V1PersistentVolumeSpec addAccessModesItem(String accessModesItem) { * @return accessModes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes") public List getAccessModes() { return accessModes; } @@ -243,6 +247,7 @@ public V1PersistentVolumeSpec awsElasticBlockStore(V1AWSElasticBlockStoreVolumeS * @return awsElasticBlockStore **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } @@ -262,6 +267,7 @@ public V1PersistentVolumeSpec azureDisk(V1AzureDiskVolumeSource azureDisk) { * @return azureDisk **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } @@ -281,6 +287,7 @@ public V1PersistentVolumeSpec azureFile(V1AzureFilePersistentVolumeSource azureF * @return azureFile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AzureFilePersistentVolumeSource getAzureFile() { return azureFile; } @@ -308,6 +315,7 @@ public V1PersistentVolumeSpec putCapacityItem(String key, Quantity capacityItem) * @return capacity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity") public Map getCapacity() { return capacity; } @@ -327,6 +335,7 @@ public V1PersistentVolumeSpec cephfs(V1CephFSPersistentVolumeSource cephfs) { * @return cephfs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CephFSPersistentVolumeSource getCephfs() { return cephfs; } @@ -346,6 +355,7 @@ public V1PersistentVolumeSpec cinder(V1CinderPersistentVolumeSource cinder) { * @return cinder **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CinderPersistentVolumeSource getCinder() { return cinder; } @@ -365,6 +375,7 @@ public V1PersistentVolumeSpec claimRef(V1ObjectReference claimRef) { * @return claimRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectReference getClaimRef() { return claimRef; } @@ -384,6 +395,7 @@ public V1PersistentVolumeSpec csi(V1CSIPersistentVolumeSource csi) { * @return csi **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CSIPersistentVolumeSource getCsi() { return csi; } @@ -403,6 +415,7 @@ public V1PersistentVolumeSpec fc(V1FCVolumeSource fc) { * @return fc **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FCVolumeSource getFc() { return fc; } @@ -422,6 +435,7 @@ public V1PersistentVolumeSpec flexVolume(V1FlexPersistentVolumeSource flexVolume * @return flexVolume **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FlexPersistentVolumeSource getFlexVolume() { return flexVolume; } @@ -441,6 +455,7 @@ public V1PersistentVolumeSpec flocker(V1FlockerVolumeSource flocker) { * @return flocker **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FlockerVolumeSource getFlocker() { return flocker; } @@ -460,6 +475,7 @@ public V1PersistentVolumeSpec gcePersistentDisk(V1GCEPersistentDiskVolumeSource * @return gcePersistentDisk **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } @@ -479,6 +495,7 @@ public V1PersistentVolumeSpec glusterfs(V1GlusterfsPersistentVolumeSource gluste * @return glusterfs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GlusterfsPersistentVolumeSource getGlusterfs() { return glusterfs; } @@ -498,6 +515,7 @@ public V1PersistentVolumeSpec hostPath(V1HostPathVolumeSource hostPath) { * @return hostPath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1HostPathVolumeSource getHostPath() { return hostPath; } @@ -517,6 +535,7 @@ public V1PersistentVolumeSpec iscsi(V1ISCSIPersistentVolumeSource iscsi) { * @return iscsi **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ISCSIPersistentVolumeSource getIscsi() { return iscsi; } @@ -536,6 +555,7 @@ public V1PersistentVolumeSpec local(V1LocalVolumeSource local) { * @return local **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalVolumeSource getLocal() { return local; } @@ -563,6 +583,7 @@ public V1PersistentVolumeSpec addMountOptionsItem(String mountOptionsItem) { * @return mountOptions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options") public List getMountOptions() { return mountOptions; } @@ -582,6 +603,7 @@ public V1PersistentVolumeSpec nfs(V1NFSVolumeSource nfs) { * @return nfs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NFSVolumeSource getNfs() { return nfs; } @@ -601,6 +623,7 @@ public V1PersistentVolumeSpec nodeAffinity(V1VolumeNodeAffinity nodeAffinity) { * @return nodeAffinity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VolumeNodeAffinity getNodeAffinity() { return nodeAffinity; } @@ -620,6 +643,7 @@ public V1PersistentVolumeSpec persistentVolumeReclaimPolicy(String persistentVol * @return persistentVolumeReclaimPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming") public String getPersistentVolumeReclaimPolicy() { return persistentVolumeReclaimPolicy; } @@ -639,6 +663,7 @@ public V1PersistentVolumeSpec photonPersistentDisk(V1PhotonPersistentDiskVolumeS * @return photonPersistentDisk **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } @@ -658,6 +683,7 @@ public V1PersistentVolumeSpec portworxVolume(V1PortworxVolumeSource portworxVolu * @return portworxVolume **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } @@ -677,6 +703,7 @@ public V1PersistentVolumeSpec quobyte(V1QuobyteVolumeSource quobyte) { * @return quobyte **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1QuobyteVolumeSource getQuobyte() { return quobyte; } @@ -696,6 +723,7 @@ public V1PersistentVolumeSpec rbd(V1RBDPersistentVolumeSource rbd) { * @return rbd **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1RBDPersistentVolumeSource getRbd() { return rbd; } @@ -715,6 +743,7 @@ public V1PersistentVolumeSpec scaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { * @return scaleIO **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ScaleIOPersistentVolumeSource getScaleIO() { return scaleIO; } @@ -734,6 +763,7 @@ public V1PersistentVolumeSpec storageClassName(String storageClassName) { * @return storageClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.") public String getStorageClassName() { return storageClassName; } @@ -753,6 +783,7 @@ public V1PersistentVolumeSpec storageos(V1StorageOSPersistentVolumeSource storag * @return storageos **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StorageOSPersistentVolumeSource getStorageos() { return storageos; } @@ -772,6 +803,7 @@ public V1PersistentVolumeSpec volumeAttributesClassName(String volumeAttributesC * @return volumeAttributesClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).") public String getVolumeAttributesClassName() { return volumeAttributesClassName; } @@ -791,6 +823,7 @@ public V1PersistentVolumeSpec volumeMode(String volumeMode) { * @return volumeMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.") public String getVolumeMode() { return volumeMode; } @@ -810,6 +843,7 @@ public V1PersistentVolumeSpec vsphereVolume(V1VsphereVirtualDiskVolumeSource vsp * @return vsphereVolume **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } 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 d02f93ec96..478623c726 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * PersistentVolumeStatus is the current status of a persistent volume. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME = "lastPhaseTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME) @@ -80,6 +83,7 @@ public V1PersistentVolumeStatus lastPhaseTransitionTime(OffsetDateTime lastPhase * @return lastPhaseTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions.") public OffsetDateTime getLastPhaseTransitionTime() { return lastPhaseTransitionTime; } @@ -99,6 +103,7 @@ public V1PersistentVolumeStatus message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "message is a human-readable message indicating details about why the volume is in this state.") public String getMessage() { return message; } @@ -118,6 +123,7 @@ public V1PersistentVolumeStatus phase(String phase) { * @return phase **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase") public String getPhase() { return phase; } @@ -137,6 +143,7 @@ public V1PersistentVolumeStatus reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.") public String getReason() { return reason; } 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 27c6da5dfc..3159312df4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Represents a Photon Controller persistent disk resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Photon Controller persistent disk resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -71,6 +74,7 @@ public V1PhotonPersistentDiskVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } @@ -90,6 +94,7 @@ public V1PhotonPersistentDiskVolumeSource pdID(String pdID) { * @return pdID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "pdID is the ID that identifies Photon Controller persistent disk") public String getPdID() { return pdID; } 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 d39a841abf..9c5d37e79e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodSpec; import io.kubernetes.client.openapi.models.V1PodStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Pod apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Pod kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Pod metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Pod spec(V1PodSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Pod status(V1PodStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodStatus getStatus() { return status; } 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 464dc1549b..049d78caf2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodAffinityTerm; import io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * Pod affinity is a group of inter pod affinity scheduling rules. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) @@ -83,6 +86,7 @@ public V1PodAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1We * @return preferredDuringSchedulingIgnoredDuringExecution **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } @@ -110,6 +114,7 @@ public V1PodAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1Pod * @return requiredDuringSchedulingIgnoredDuringExecution **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } 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 22acece241..adf3dd6b37 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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 <topologyKey> matches that of any node on which a pod of the set of pods is running */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -90,6 +93,7 @@ public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector) { * @return labelSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getLabelSelector() { return labelSelector; } @@ -117,6 +121,7 @@ public V1PodAffinityTerm addMatchLabelKeysItem(String matchLabelKeysItem) { * @return matchLabelKeys **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).") public List getMatchLabelKeys() { return matchLabelKeys; } @@ -144,6 +149,7 @@ public V1PodAffinityTerm addMismatchLabelKeysItem(String mismatchLabelKeysItem) * @return mismatchLabelKeys **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).") public List getMismatchLabelKeys() { return mismatchLabelKeys; } @@ -163,6 +169,7 @@ public V1PodAffinityTerm namespaceSelector(V1LabelSelector namespaceSelector) { * @return namespaceSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -190,6 +197,7 @@ public V1PodAffinityTerm addNamespacesItem(String namespacesItem) { * @return namespaces **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".") public List getNamespaces() { return namespaces; } @@ -209,6 +217,7 @@ public V1PodAffinityTerm topologyKey(String topologyKey) { * @return topologyKey **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.") public String getTopologyKey() { return topologyKey; } 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 e43df48954..1d0af7134c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodAffinityTerm; import io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * Pod anti affinity is a group of inter pod anti affinity scheduling rules. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) @@ -83,6 +86,7 @@ public V1PodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( * @return preferredDuringSchedulingIgnoredDuringExecution **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } @@ -110,6 +114,7 @@ public V1PodAntiAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V * @return requiredDuringSchedulingIgnoredDuringExecution **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } 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 4712dcd930..80281e7c24 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * PodCondition contains details for the current condition of this pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodCondition contains details for the current condition of this pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -88,6 +91,7 @@ public V1PodCondition lastProbeTime(OffsetDateTime lastProbeTime) { * @return lastProbeTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time we probed the condition.") public OffsetDateTime getLastProbeTime() { return lastProbeTime; } @@ -107,6 +111,7 @@ public V1PodCondition lastTransitionTime(OffsetDateTime lastTransitionTime) { * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -126,6 +131,7 @@ public V1PodCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -145,6 +151,7 @@ public V1PodCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1PodCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "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") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1PodCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") public String getType() { return type; } 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 b8344d67a1..1fe7aedf44 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodDNSConfigOption; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @SerializedName(SERIALIZED_NAME_NAMESERVERS) @@ -86,6 +89,7 @@ public V1PodDNSConfig addNameserversItem(String nameserversItem) { * @return nameservers **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.") public List getNameservers() { return nameservers; } @@ -113,6 +117,7 @@ public V1PodDNSConfig addOptionsItem(V1PodDNSConfigOption optionsItem) { * @return options **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.") public List getOptions() { return options; } @@ -140,6 +145,7 @@ public V1PodDNSConfig addSearchesItem(String searchesItem) { * @return searches **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.") public List getSearches() { return searches; } 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 0318a57d9b..08baca0404 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodDNSConfigOption defines DNS resolver options of a pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1PodDNSConfigOption name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Required.") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1PodDNSConfigOption value(String value) { * @return value **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public String getValue() { return value; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java index 421e91e522..e35ad4c70e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec; import io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1PodDisruptionBudget apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1PodDisruptionBudget kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1PodDisruptionBudget metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1PodDisruptionBudget spec(V1PodDisruptionBudgetSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodDisruptionBudgetSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1PodDisruptionBudget status(V1PodDisruptionBudgetStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodDisruptionBudgetStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java index 0193575106..b38a884eb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PodDisruptionBudget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1PodDisruptionBudgetList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1PodDisruptionBudgetList addItemsItem(V1PodDisruptionBudget itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of PodDisruptionBudgets") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1PodDisruptionBudgetList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1PodDisruptionBudgetList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java index 7edbf9d124..0d19dc125f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) @@ -81,6 +84,7 @@ public V1PodDisruptionBudgetSpec maxUnavailable(IntOrString maxUnavailable) { * @return maxUnavailable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return maxUnavailable; } @@ -100,6 +104,7 @@ public V1PodDisruptionBudgetSpec minAvailable(IntOrString minAvailable) { * @return minAvailable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMinAvailable() { return minAvailable; } @@ -119,6 +124,7 @@ public V1PodDisruptionBudgetSpec selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } @@ -138,6 +144,7 @@ public V1PodDisruptionBudgetSpec unhealthyPodEvictionPolicy(String unhealthyPodE * @return unhealthyPodEvictionPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).") public String getUnhealthyPodEvictionPolicy() { return unhealthyPodEvictionPolicy; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java index a9f1646fef..3cad501281 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -54,7 +56,8 @@ /** * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -105,6 +108,7 @@ public V1PodDisruptionBudgetStatus addConditionsItem(V1Condition conditionsItem) * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property.") public List getConditions() { return conditions; } @@ -124,6 +128,7 @@ public V1PodDisruptionBudgetStatus currentHealthy(Integer currentHealthy) { * @return currentHealthy **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "current number of healthy pods") public Integer getCurrentHealthy() { return currentHealthy; } @@ -143,6 +148,7 @@ public V1PodDisruptionBudgetStatus desiredHealthy(Integer desiredHealthy) { * @return desiredHealthy **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "minimum desired number of healthy pods") public Integer getDesiredHealthy() { return desiredHealthy; } @@ -170,6 +176,7 @@ public V1PodDisruptionBudgetStatus putDisruptedPodsItem(String key, OffsetDateTi * @return disruptedPods **/ @jakarta.annotation.Nullable + @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() { return disruptedPods; } @@ -189,6 +196,7 @@ public V1PodDisruptionBudgetStatus disruptionsAllowed(Integer disruptionsAllowed * @return disruptionsAllowed **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Number of pod disruptions that are currently allowed.") public Integer getDisruptionsAllowed() { return disruptionsAllowed; } @@ -208,6 +216,7 @@ public V1PodDisruptionBudgetStatus expectedPods(Integer expectedPods) { * @return expectedPods **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "total number of pods counted by this disruption budget") public Integer getExpectedPods() { return expectedPods; } @@ -227,6 +236,7 @@ public V1PodDisruptionBudgetStatus observedGeneration(Long observedGeneration) { * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") public Long getObservedGeneration() { return observedGeneration; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java index c2f8e23e3d..1d3d4f5ffc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodFailurePolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PodFailurePolicy describes how failed pods influence the backoffLimit. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodFailurePolicy describes how failed pods influence the backoffLimit.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodFailurePolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -78,6 +81,7 @@ public V1PodFailurePolicy addRulesItem(V1PodFailurePolicyRule rulesItem) { * @return rules **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.") public List getRules() { return rules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java index 004bad34da..7b02d3cd36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) @@ -77,6 +80,7 @@ public V1PodFailurePolicyOnExitCodesRequirement containerName(String containerNa * @return containerName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.") public String getContainerName() { return containerName; } @@ -96,6 +100,7 @@ public V1PodFailurePolicyOnExitCodesRequirement operator(String operator) { * @return operator **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.") public String getOperator() { return operator; } @@ -123,6 +128,7 @@ public V1PodFailurePolicyOnExitCodesRequirement addValuesItem(Integer valuesItem * @return values **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.") public List getValues() { return values; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java index 29078cf809..0a88fb3895 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodFailurePolicyOnPodConditionsPattern { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -71,6 +74,7 @@ public V1PodFailurePolicyOnPodConditionsPattern status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.") public String getStatus() { return status; } @@ -90,6 +94,7 @@ public V1PodFailurePolicyOnPodConditionsPattern type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java index 3a80f7e6f7..a3a9bad642 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodFailurePolicyOnExitCodesRequirement; import io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodFailurePolicyRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -79,6 +82,7 @@ public V1PodFailurePolicyRule action(String action) { * @return action **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. This value is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.") public String getAction() { return action; } @@ -98,6 +102,7 @@ public V1PodFailurePolicyRule onExitCodes(V1PodFailurePolicyOnExitCodesRequireme * @return onExitCodes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes() { return onExitCodes; } @@ -125,6 +130,7 @@ public V1PodFailurePolicyRule addOnPodConditionsItem(V1PodFailurePolicyOnPodCond * @return onPodConditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.") public List getOnPodConditions() { return onPodConditions; } 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 0f6d17b1a9..f17ecc6281 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodIP represents a single IP address allocated to the pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodIP represents a single IP address allocated to the pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) @@ -67,6 +70,7 @@ public V1PodIP ip(String ip) { * @return ip **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "IP is the IP address assigned to the pod") public String getIp() { return 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 2a7ade95fc..fa239e6733 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Pod; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PodList is a list of Pods. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodList is a list of Pods.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1PodList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1PodList addItemsItem(V1Pod itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1PodList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1PodList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java index f1dbdedcb0..edbc91b3ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodOS defines the OS parameters of a pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodOS defines the OS parameters of a pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodOS { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1PodOS name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null") public String getName() { return name; } 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 a4f46da1c1..580f7e106c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodReadinessGate contains the reference to a pod condition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodReadinessGate contains the reference to a pod condition") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) @@ -67,6 +70,7 @@ public V1PodReadinessGate conditionType(String conditionType) { * @return conditionType **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ConditionType refers to a condition in the pod's condition list with matching type.") public String getConditionType() { return conditionType; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java index 5bb45df77f..a042d330dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -75,6 +78,7 @@ public V1PodResourceClaim name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.") public String getName() { return name; } @@ -94,6 +98,7 @@ public V1PodResourceClaim resourceClaimName(String resourceClaimName) { * @return resourceClaimName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") public String getResourceClaimName() { return resourceClaimName; } @@ -113,6 +118,7 @@ public V1PodResourceClaim resourceClaimTemplateName(String resourceClaimTemplate * @return resourceClaimTemplateName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") public String getResourceClaimTemplateName() { return resourceClaimTemplateName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java index 23b78a3a80..deff9f4e7b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodResourceClaimStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1PodResourceClaimStatus name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1PodResourceClaimStatus resourceClaimName(String resourceClaimName) { * @return resourceClaimName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.") public String getResourceClaimName() { return resourceClaimName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java index 829af3dcc8..3b9cca153b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PodSchedulingGate is associated to a Pod to guard its scheduling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodSchedulingGate is associated to a Pod to guard its scheduling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodSchedulingGate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1PodSchedulingGate name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the scheduling gate. Each scheduling gate must have a unique name field.") public String getName() { return name; } 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 26faf189e7..9b5c573f9d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +23,8 @@ import io.kubernetes.client.openapi.models.V1SeccompProfile; import io.kubernetes.client.openapi.models.V1Sysctl; import io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -55,7 +57,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) @@ -118,6 +121,7 @@ public V1PodSecurityContext appArmorProfile(V1AppArmorProfile appArmorProfile) { * @return appArmorProfile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AppArmorProfile getAppArmorProfile() { return appArmorProfile; } @@ -137,6 +141,7 @@ public V1PodSecurityContext fsGroup(Long fsGroup) { * @return fsGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.") public Long getFsGroup() { return fsGroup; } @@ -156,6 +161,7 @@ public V1PodSecurityContext fsGroupChangePolicy(String fsGroupChangePolicy) { * @return fsGroupChangePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.") public String getFsGroupChangePolicy() { return fsGroupChangePolicy; } @@ -175,6 +181,7 @@ public V1PodSecurityContext runAsGroup(Long runAsGroup) { * @return runAsGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsGroup() { return runAsGroup; } @@ -194,6 +201,7 @@ public V1PodSecurityContext runAsNonRoot(Boolean runAsNonRoot) { * @return runAsNonRoot **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") public Boolean getRunAsNonRoot() { return runAsNonRoot; } @@ -213,6 +221,7 @@ public V1PodSecurityContext runAsUser(Long runAsUser) { * @return runAsUser **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsUser() { return runAsUser; } @@ -232,6 +241,7 @@ public V1PodSecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { * @return seLinuxOptions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } @@ -251,6 +261,7 @@ public V1PodSecurityContext seccompProfile(V1SeccompProfile seccompProfile) { * @return seccompProfile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SeccompProfile getSeccompProfile() { return seccompProfile; } @@ -278,6 +289,7 @@ public V1PodSecurityContext addSupplementalGroupsItem(Long supplementalGroupsIte * @return supplementalGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.") public List getSupplementalGroups() { return supplementalGroups; } @@ -297,6 +309,7 @@ public V1PodSecurityContext supplementalGroupsPolicy(String supplementalGroupsPo * @return supplementalGroupsPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.") public String getSupplementalGroupsPolicy() { return supplementalGroupsPolicy; } @@ -324,6 +337,7 @@ public V1PodSecurityContext addSysctlsItem(V1Sysctl sysctlsItem) { * @return sysctls **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.") public List getSysctls() { return sysctls; } @@ -343,6 +357,7 @@ public V1PodSecurityContext windowsOptions(V1WindowsSecurityContextOptions windo * @return windowsOptions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions; } 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 86cfd99f07..5c58d30c87 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +33,8 @@ import io.kubernetes.client.openapi.models.V1Toleration; import io.kubernetes.client.openapi.models.V1TopologySpreadConstraint; import io.kubernetes.client.openapi.models.V1Volume; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -67,7 +69,8 @@ /** * PodSpec is a description of a pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodSpec is a description of a pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -238,6 +241,7 @@ public V1PodSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { * @return activeDeadlineSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.") public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } @@ -257,6 +261,7 @@ public V1PodSpec affinity(V1Affinity affinity) { * @return affinity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Affinity getAffinity() { return affinity; } @@ -276,6 +281,7 @@ public V1PodSpec automountServiceAccountToken(Boolean automountServiceAccountTok * @return automountServiceAccountToken **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.") public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } @@ -303,6 +309,7 @@ public V1PodSpec addContainersItem(V1Container containersItem) { * @return containers **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.") public List getContainers() { return containers; } @@ -322,6 +329,7 @@ public V1PodSpec dnsConfig(V1PodDNSConfig dnsConfig) { * @return dnsConfig **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodDNSConfig getDnsConfig() { return dnsConfig; } @@ -341,6 +349,7 @@ public V1PodSpec dnsPolicy(String dnsPolicy) { * @return dnsPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.") public String getDnsPolicy() { return dnsPolicy; } @@ -360,6 +369,7 @@ public V1PodSpec enableServiceLinks(Boolean enableServiceLinks) { * @return enableServiceLinks **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.") public Boolean getEnableServiceLinks() { return enableServiceLinks; } @@ -387,6 +397,7 @@ public V1PodSpec addEphemeralContainersItem(V1EphemeralContainer ephemeralContai * @return ephemeralContainers **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.") public List getEphemeralContainers() { return ephemeralContainers; } @@ -414,6 +425,7 @@ public V1PodSpec addHostAliasesItem(V1HostAlias hostAliasesItem) { * @return hostAliases **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.") public List getHostAliases() { return hostAliases; } @@ -433,6 +445,7 @@ public V1PodSpec hostIPC(Boolean hostIPC) { * @return hostIPC **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Use the host's ipc namespace. Optional: Default to false.") public Boolean getHostIPC() { return hostIPC; } @@ -452,6 +465,7 @@ public V1PodSpec hostNetwork(Boolean hostNetwork) { * @return hostNetwork **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.") public Boolean getHostNetwork() { return hostNetwork; } @@ -471,6 +485,7 @@ public V1PodSpec hostPID(Boolean hostPID) { * @return hostPID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Use the host's pid namespace. Optional: Default to false.") public Boolean getHostPID() { return hostPID; } @@ -490,6 +505,7 @@ public V1PodSpec hostUsers(Boolean hostUsers) { * @return hostUsers **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.") public Boolean getHostUsers() { return hostUsers; } @@ -509,6 +525,7 @@ public V1PodSpec hostname(String hostname) { * @return hostname **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.") public String getHostname() { return hostname; } @@ -536,6 +553,7 @@ public V1PodSpec addImagePullSecretsItem(V1LocalObjectReference imagePullSecrets * @return imagePullSecrets **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod") public List getImagePullSecrets() { return imagePullSecrets; } @@ -563,6 +581,7 @@ public V1PodSpec addInitContainersItem(V1Container initContainersItem) { * @return initContainers **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/") public List getInitContainers() { return initContainers; } @@ -582,6 +601,7 @@ public V1PodSpec nodeName(String nodeName) { * @return nodeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename") public String getNodeName() { return nodeName; } @@ -609,6 +629,7 @@ public V1PodSpec putNodeSelectorItem(String key, String nodeSelectorItem) { * @return nodeSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/") public Map getNodeSelector() { return nodeSelector; } @@ -628,6 +649,7 @@ public V1PodSpec os(V1PodOS os) { * @return os **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodOS getOs() { return os; } @@ -655,6 +677,7 @@ public V1PodSpec putOverheadItem(String key, Quantity overheadItem) { * @return overhead **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md") public Map getOverhead() { return overhead; } @@ -674,6 +697,7 @@ public V1PodSpec preemptionPolicy(String preemptionPolicy) { * @return preemptionPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") public String getPreemptionPolicy() { return preemptionPolicy; } @@ -693,6 +717,7 @@ public V1PodSpec priority(Integer priority) { * @return priority **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.") public Integer getPriority() { return priority; } @@ -712,6 +737,7 @@ public V1PodSpec priorityClassName(String priorityClassName) { * @return priorityClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.") public String getPriorityClassName() { return priorityClassName; } @@ -739,6 +765,7 @@ public V1PodSpec addReadinessGatesItem(V1PodReadinessGate readinessGatesItem) { * @return readinessGates **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates") public List getReadinessGates() { return readinessGates; } @@ -766,6 +793,7 @@ public V1PodSpec addResourceClaimsItem(V1PodResourceClaim resourceClaimsItem) { * @return resourceClaims **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable.") public List getResourceClaims() { return resourceClaims; } @@ -785,6 +813,7 @@ public V1PodSpec restartPolicy(String restartPolicy) { * @return restartPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy") public String getRestartPolicy() { return restartPolicy; } @@ -804,6 +833,7 @@ public V1PodSpec runtimeClassName(String runtimeClassName) { * @return runtimeClassName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class") public String getRuntimeClassName() { return runtimeClassName; } @@ -823,6 +853,7 @@ public V1PodSpec schedulerName(String schedulerName) { * @return schedulerName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.") public String getSchedulerName() { return schedulerName; } @@ -850,6 +881,7 @@ public V1PodSpec addSchedulingGatesItem(V1PodSchedulingGate schedulingGatesItem) * @return schedulingGates **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards.") public List getSchedulingGates() { return schedulingGates; } @@ -869,6 +901,7 @@ public V1PodSpec securityContext(V1PodSecurityContext securityContext) { * @return securityContext **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodSecurityContext getSecurityContext() { return securityContext; } @@ -888,6 +921,7 @@ public V1PodSpec serviceAccount(String serviceAccount) { * @return serviceAccount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.") public String getServiceAccount() { return serviceAccount; } @@ -907,6 +941,7 @@ public V1PodSpec serviceAccountName(String serviceAccountName) { * @return serviceAccountName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/") public String getServiceAccountName() { return serviceAccountName; } @@ -926,6 +961,7 @@ public V1PodSpec setHostnameAsFQDN(Boolean setHostnameAsFQDN) { * @return setHostnameAsFQDN **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.") public Boolean getSetHostnameAsFQDN() { return setHostnameAsFQDN; } @@ -945,6 +981,7 @@ public V1PodSpec shareProcessNamespace(Boolean shareProcessNamespace) { * @return shareProcessNamespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.") public Boolean getShareProcessNamespace() { return shareProcessNamespace; } @@ -964,6 +1001,7 @@ public V1PodSpec subdomain(String subdomain) { * @return subdomain **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.") public String getSubdomain() { return subdomain; } @@ -983,6 +1021,7 @@ public V1PodSpec terminationGracePeriodSeconds(Long terminationGracePeriodSecond * @return terminationGracePeriodSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.") public Long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds; } @@ -1010,6 +1049,7 @@ public V1PodSpec addTolerationsItem(V1Toleration tolerationsItem) { * @return tolerations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the pod's tolerations.") public List getTolerations() { return tolerations; } @@ -1037,6 +1077,7 @@ public V1PodSpec addTopologySpreadConstraintsItem(V1TopologySpreadConstraint top * @return topologySpreadConstraints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.") public List getTopologySpreadConstraints() { return topologySpreadConstraints; } @@ -1064,6 +1105,7 @@ public V1PodSpec addVolumesItem(V1Volume volumesItem) { * @return volumes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes") public List getVolumes() { return volumes; } 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 91caf85aca..bab3e5936f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +23,8 @@ import io.kubernetes.client.openapi.models.V1PodCondition; import io.kubernetes.client.openapi.models.V1PodIP; import io.kubernetes.client.openapi.models.V1PodResourceClaimStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -56,7 +58,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -143,6 +146,7 @@ public V1PodStatus addConditionsItem(V1PodCondition conditionsItem) { * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") public List getConditions() { return conditions; } @@ -170,6 +174,7 @@ public V1PodStatus addContainerStatusesItem(V1ContainerStatus containerStatusesI * @return containerStatuses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") public List getContainerStatuses() { return containerStatuses; } @@ -197,6 +202,7 @@ public V1PodStatus addEphemeralContainerStatusesItem(V1ContainerStatus ephemeral * @return ephemeralContainerStatuses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status for any ephemeral containers that have run in this pod.") public List getEphemeralContainerStatuses() { return ephemeralContainerStatuses; } @@ -216,6 +222,7 @@ public V1PodStatus hostIP(String hostIP) { * @return hostIP **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod") public String getHostIP() { return hostIP; } @@ -243,6 +250,7 @@ public V1PodStatus addHostIPsItem(V1HostIP hostIPsItem) { * @return hostIPs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.") public List getHostIPs() { return hostIPs; } @@ -270,6 +278,7 @@ public V1PodStatus addInitContainerStatusesItem(V1ContainerStatus initContainerS * @return initContainerStatuses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") public List getInitContainerStatuses() { return initContainerStatuses; } @@ -289,6 +298,7 @@ public V1PodStatus message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about why the pod is in this condition.") public String getMessage() { return message; } @@ -308,6 +318,7 @@ public V1PodStatus nominatedNodeName(String nominatedNodeName) { * @return nominatedNodeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.") public String getNominatedNodeName() { return nominatedNodeName; } @@ -327,6 +338,7 @@ public V1PodStatus phase(String phase) { * @return phase **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase") public String getPhase() { return phase; } @@ -346,6 +358,7 @@ public V1PodStatus podIP(String podIP) { * @return podIP **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.") public String getPodIP() { return podIP; } @@ -373,6 +386,7 @@ public V1PodStatus addPodIPsItem(V1PodIP podIPsItem) { * @return podIPs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") public List getPodIPs() { return podIPs; } @@ -392,6 +406,7 @@ public V1PodStatus qosClass(String qosClass) { * @return qosClass **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes") public String getQosClass() { return qosClass; } @@ -411,6 +426,7 @@ public V1PodStatus reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'") public String getReason() { return reason; } @@ -430,6 +446,7 @@ public V1PodStatus resize(String resize) { * @return resize **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"") public String getResize() { return resize; } @@ -457,6 +474,7 @@ public V1PodStatus addResourceClaimStatusesItem(V1PodResourceClaimStatus resourc * @return resourceClaimStatuses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of resource claims.") public List getResourceClaimStatuses() { return resourceClaimStatuses; } @@ -476,6 +494,7 @@ public V1PodStatus startTime(OffsetDateTime startTime) { * @return startTime **/ @jakarta.annotation.Nullable + @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 OffsetDateTime getStartTime() { return 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 53a3ab7d4b..0460b994f3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PodTemplate describes a template for creating copies of a predefined pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1PodTemplate apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1PodTemplate kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1PodTemplate metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1PodTemplate template(V1PodTemplateSpec template) { * @return template **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodTemplateSpec getTemplate() { return template; } 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 0005d9c63a..46699caaf4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PodTemplate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PodTemplateList is a list of PodTemplates. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodTemplateList is a list of PodTemplates.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1PodTemplateList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1PodTemplateList addItemsItem(V1PodTemplate itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of pod templates") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1PodTemplateList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1PodTemplateList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 52add9da9e..b6c28dcbdf 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PodSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PodTemplateSpec describes the data a pod should have when created from a template */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodTemplateSpec describes the data a pod should have when created from a template") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -73,6 +76,7 @@ public V1PodTemplateSpec metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -92,6 +96,7 @@ public V1PodTemplateSpec spec(V1PodSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodSpec getSpec() { return spec; } 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 f383abcc5f..1abaef9aae 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -93,6 +96,7 @@ public V1PolicyRule addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.") public List getApiGroups() { return apiGroups; } @@ -120,6 +124,7 @@ public V1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { * @return nonResourceURLs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") public List getNonResourceURLs() { return nonResourceURLs; } @@ -147,6 +152,7 @@ public V1PolicyRule addResourceNamesItem(String resourceNamesItem) { * @return resourceNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } @@ -174,6 +180,7 @@ public V1PolicyRule addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources is a list of resources this rule applies to. '*' represents all resources.") public List getResources() { return resources; } @@ -201,6 +208,7 @@ public V1PolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.") public List getVerbs() { return verbs; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java index 97772f2407..df95c44d4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.FlowcontrolV1Subject; import io.kubernetes.client.openapi.models.V1NonResourcePolicyRule; import io.kubernetes.client.openapi.models.V1ResourcePolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) @@ -88,6 +91,7 @@ public V1PolicyRulesWithSubjects addNonResourceRulesItem(V1NonResourcePolicyRule * @return nonResourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.") public List getNonResourceRules() { return nonResourceRules; } @@ -115,6 +119,7 @@ public V1PolicyRulesWithSubjects addResourceRulesItem(V1ResourcePolicyRule resou * @return resourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.") public List getResourceRules() { return resourceRules; } @@ -142,6 +147,7 @@ public V1PolicyRulesWithSubjects addSubjectsItem(FlowcontrolV1Subject subjectsIt * @return subjects **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.") public List getSubjects() { return subjects; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java index 543ccfc7c8..5eb415c8eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,7 @@ /** * V1PortStatus */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -75,6 +77,7 @@ public V1PortStatus error(String error) { * @return error **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase.") public String getError() { return error; } @@ -94,6 +97,7 @@ public V1PortStatus port(Integer port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Port is the port number of the service port of which status is recorded here") public Integer getPort() { return port; } @@ -113,6 +117,7 @@ public V1PortStatus protocol(String protocol) { * @return protocol **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"") public String getProtocol() { return protocol; } 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 33de38d57b..bbc62b6bbc 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PortworxVolumeSource represents a Portworx volume resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -75,6 +78,7 @@ public V1PortworxVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } @@ -94,6 +98,7 @@ public V1PortworxVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -113,6 +118,7 @@ public V1PortworxVolumeSource volumeID(String volumeID) { * @return volumeID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "volumeID uniquely identifies a Portworx volume") public String getVolumeID() { return volumeID; } 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 e5619a3b93..454771598e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) @@ -71,6 +74,7 @@ public V1Preconditions resourceVersion(String resourceVersion) { * @return resourceVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the target ResourceVersion") public String getResourceVersion() { return resourceVersion; } @@ -90,6 +94,7 @@ public V1Preconditions uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the target UID.") public String getUid() { return uid; } 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 9fce88bb3c..76c0e6b55a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelectorTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; @SerializedName(SERIALIZED_NAME_PREFERENCE) @@ -72,6 +75,7 @@ public V1PreferredSchedulingTerm preference(V1NodeSelectorTerm preference) { * @return preference **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1NodeSelectorTerm getPreference() { return preference; } @@ -91,6 +95,7 @@ public V1PreferredSchedulingTerm weight(Integer weight) { * @return weight **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.") public Integer getWeight() { return weight; } 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 4eac9f4414..8cff8d6e21 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -92,6 +95,7 @@ public V1PriorityClass apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -111,6 +115,7 @@ public V1PriorityClass description(String description) { * @return description **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "description is an arbitrary string that usually provides guidelines on when this priority class should be used.") public String getDescription() { return description; } @@ -130,6 +135,7 @@ public V1PriorityClass globalDefault(Boolean globalDefault) { * @return globalDefault **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.") public Boolean getGlobalDefault() { return globalDefault; } @@ -149,6 +155,7 @@ public V1PriorityClass kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -168,6 +175,7 @@ public V1PriorityClass metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -187,6 +195,7 @@ public V1PriorityClass preemptionPolicy(String preemptionPolicy) { * @return preemptionPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.") public String getPreemptionPolicy() { return preemptionPolicy; } @@ -206,6 +215,7 @@ public V1PriorityClass value(Integer value) { * @return value **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") public Integer getValue() { return value; } 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 02a7eae1bc..81afbdb164 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PriorityClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PriorityClassList is a collection of priority classes. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityClassList is a collection of priority classes.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1PriorityClassList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1PriorityClassList addItemsItem(V1PriorityClass itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of PriorityClasses") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1PriorityClassList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1PriorityClassList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java index 39f581fab5..7806563893 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationSpec; import io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PriorityLevelConfiguration represents the configuration of a priority level. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfiguration represents the configuration of a priority level.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1PriorityLevelConfiguration apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1PriorityLevelConfiguration kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1PriorityLevelConfiguration metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1PriorityLevelConfiguration spec(V1PriorityLevelConfigurationSpec spec) * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PriorityLevelConfigurationSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1PriorityLevelConfiguration status(V1PriorityLevelConfigurationStatus st * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PriorityLevelConfigurationStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java index 509a74c161..87a99bacdb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * PriorityLevelConfigurationCondition defines the condition of priority level. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationCondition defines the condition of priority level.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateTime l * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1PriorityLevelConfigurationCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1PriorityLevelConfigurationCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1PriorityLevelConfigurationCondition status(String status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1PriorityLevelConfigurationCondition type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`type` is the type of the condition. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java index 980c0b208b..9fdb555ad0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1PriorityLevelConfigurationList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1PriorityLevelConfigurationList addItemsItem(V1PriorityLevelConfiguratio * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`items` is a list of request-priorities.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1PriorityLevelConfigurationList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1PriorityLevelConfigurationList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java index 3a88d9cce6..532306896c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1PriorityLevelConfigurationReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`name` is the name of the priority level configuration being referenced Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java index a6b84dd106..c9a01dacfe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ExemptPriorityLevelConfiguration; import io.kubernetes.client.openapi.models.V1LimitedPriorityLevelConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_EXEMPT = "exempt"; @SerializedName(SERIALIZED_NAME_EXEMPT) @@ -77,6 +80,7 @@ public V1PriorityLevelConfigurationSpec exempt(V1ExemptPriorityLevelConfiguratio * @return exempt **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ExemptPriorityLevelConfiguration getExempt() { return exempt; } @@ -96,6 +100,7 @@ public V1PriorityLevelConfigurationSpec limited(V1LimitedPriorityLevelConfigurat * @return limited **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LimitedPriorityLevelConfiguration getLimited() { return limited; } @@ -115,6 +120,7 @@ public V1PriorityLevelConfigurationSpec type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java index e6fefcf280..5a0330f338 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -78,6 +81,7 @@ public V1PriorityLevelConfigurationStatus addConditionsItem(V1PriorityLevelConfi * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`conditions` is the current state of \"request-priority\".") public List getConditions() { return conditions; } 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 81cd5d3a08..05383197e3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1GRPCAction; import io.kubernetes.client.openapi.models.V1HTTPGetAction; import io.kubernetes.client.openapi.models.V1TCPSocketAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) @@ -107,6 +110,7 @@ public V1Probe exec(V1ExecAction exec) { * @return exec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ExecAction getExec() { return exec; } @@ -126,6 +130,7 @@ public V1Probe failureThreshold(Integer failureThreshold) { * @return failureThreshold **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.") public Integer getFailureThreshold() { return failureThreshold; } @@ -145,6 +150,7 @@ public V1Probe grpc(V1GRPCAction grpc) { * @return grpc **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GRPCAction getGrpc() { return grpc; } @@ -164,6 +170,7 @@ public V1Probe httpGet(V1HTTPGetAction httpGet) { * @return httpGet **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1HTTPGetAction getHttpGet() { return httpGet; } @@ -183,6 +190,7 @@ public V1Probe initialDelaySeconds(Integer initialDelaySeconds) { * @return initialDelaySeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") public Integer getInitialDelaySeconds() { return initialDelaySeconds; } @@ -202,6 +210,7 @@ public V1Probe periodSeconds(Integer periodSeconds) { * @return periodSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.") public Integer getPeriodSeconds() { return periodSeconds; } @@ -221,6 +230,7 @@ public V1Probe successThreshold(Integer successThreshold) { * @return successThreshold **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.") public Integer getSuccessThreshold() { return successThreshold; } @@ -240,6 +250,7 @@ public V1Probe tcpSocket(V1TCPSocketAction tcpSocket) { * @return tcpSocket **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TCPSocketAction getTcpSocket() { return tcpSocket; } @@ -259,6 +270,7 @@ public V1Probe terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) * @return terminationGracePeriodSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.") public Long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds; } @@ -278,6 +290,7 @@ public V1Probe timeoutSeconds(Integer timeoutSeconds) { * @return timeoutSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") public Integer getTimeoutSeconds() { return timeoutSeconds; } 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 f03c4e1d88..0e2a23d62a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeProjection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Represents a projected volume source */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a projected volume source") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -74,6 +77,7 @@ public V1ProjectedVolumeSource defaultMode(Integer defaultMode) { * @return defaultMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } @@ -101,6 +105,7 @@ public V1ProjectedVolumeSource addSourcesItem(V1VolumeProjection sourcesItem) { * @return sources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "sources is the list of volume projections. Each entry in this list handles one source.") public List getSources() { return sources; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java index add6f6cd49..950fb29ee8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * QueuingConfiguration holds the configuration parameters for queuing */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; @SerializedName(SERIALIZED_NAME_HAND_SIZE) @@ -75,6 +78,7 @@ public V1QueuingConfiguration handSize(Integer handSize) { * @return handSize **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.") public Integer getHandSize() { return handSize; } @@ -94,6 +98,7 @@ public V1QueuingConfiguration queueLengthLimit(Integer queueLengthLimit) { * @return queueLengthLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.") public Integer getQueueLengthLimit() { return queueLengthLimit; } @@ -113,6 +118,7 @@ public V1QueuingConfiguration queues(Integer queues) { * @return queues **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.") public Integer getQueues() { return queues; } 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 1daca9568e..b2c46a3da4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -87,6 +90,7 @@ public V1QuobyteVolumeSource group(String group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "group to map volume access to Default is no group") public String getGroup() { return group; } @@ -106,6 +110,7 @@ public V1QuobyteVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.") public Boolean getReadOnly() { return readOnly; } @@ -125,6 +130,7 @@ public V1QuobyteVolumeSource registry(String registry) { * @return registry **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes") public String getRegistry() { return registry; } @@ -144,6 +150,7 @@ public V1QuobyteVolumeSource tenant(String tenant) { * @return tenant **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin") public String getTenant() { return tenant; } @@ -163,6 +170,7 @@ public V1QuobyteVolumeSource user(String user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "user to map volume access to Defaults to serivceaccount user") public String getUser() { return user; } @@ -182,6 +190,7 @@ public V1QuobyteVolumeSource volume(String volume) { * @return volume **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "volume is a string that references an already created Quobyte volume by name.") public String getVolume() { return volume; } 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 6dc85e06b3..b06f1c2a49 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -98,6 +101,7 @@ public V1RBDPersistentVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd") public String getFsType() { return fsType; } @@ -117,6 +121,7 @@ public V1RBDPersistentVolumeSource image(String image) { * @return image **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getImage() { return image; } @@ -136,6 +141,7 @@ public V1RBDPersistentVolumeSource keyring(String keyring) { * @return keyring **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getKeyring() { return keyring; } @@ -163,6 +169,7 @@ public V1RBDPersistentVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public List getMonitors() { return monitors; } @@ -182,6 +189,7 @@ public V1RBDPersistentVolumeSource pool(String pool) { * @return pool **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getPool() { return pool; } @@ -201,6 +209,7 @@ public V1RBDPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } @@ -220,6 +229,7 @@ public V1RBDPersistentVolumeSource secretRef(V1SecretReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretReference getSecretRef() { return secretRef; } @@ -239,6 +249,7 @@ public V1RBDPersistentVolumeSource user(String user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getUser() { return user; } 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 a25ea82d46..206483db86 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -98,6 +101,7 @@ public V1RBDVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd") public String getFsType() { return fsType; } @@ -117,6 +121,7 @@ public V1RBDVolumeSource image(String image) { * @return image **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getImage() { return image; } @@ -136,6 +141,7 @@ public V1RBDVolumeSource keyring(String keyring) { * @return keyring **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getKeyring() { return keyring; } @@ -163,6 +169,7 @@ public V1RBDVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public List getMonitors() { return monitors; } @@ -182,6 +189,7 @@ public V1RBDVolumeSource pool(String pool) { * @return pool **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getPool() { return pool; } @@ -201,6 +209,7 @@ public V1RBDVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public Boolean getReadOnly() { return readOnly; } @@ -220,6 +229,7 @@ public V1RBDVolumeSource secretRef(V1LocalObjectReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -239,6 +249,7 @@ public V1RBDVolumeSource user(String user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") public String getUser() { return user; } 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 2c30523931..d3b182c9f0 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ReplicaSetSpec; import io.kubernetes.client.openapi.models.V1ReplicaSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1ReplicaSet apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1ReplicaSet kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1ReplicaSet metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1ReplicaSet spec(V1ReplicaSetSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ReplicaSetSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1ReplicaSet status(V1ReplicaSetStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ReplicaSetStatus getStatus() { return status; } 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 5570ca5aa4..7b64dc09ea 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ReplicaSetCondition describes the state of a replica set at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1ReplicaSetCondition lastTransitionTime(OffsetDateTime lastTransitionTim * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1ReplicaSetCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1ReplicaSetCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1ReplicaSetCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1ReplicaSetCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of replica set condition.") public String getType() { return type; } 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 21800af522..93d6234c6e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ReplicaSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ReplicaSetList is a collection of ReplicaSets. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ReplicaSetList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ReplicaSetList addItemsItem(V1ReplicaSet itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ReplicaSetList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ReplicaSetList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 25c6c288f7..b5d59072c2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ReplicaSetSpec is the specification of a ReplicaSet. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -81,6 +84,7 @@ public V1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { * @return minReadySeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } @@ -100,6 +104,7 @@ public V1ReplicaSetSpec replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") public Integer getReplicas() { return replicas; } @@ -119,6 +124,7 @@ public V1ReplicaSetSpec selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } @@ -138,6 +144,7 @@ public V1ReplicaSetSpec template(V1PodTemplateSpec template) { * @return template **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodTemplateSpec getTemplate() { return template; } 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 6e5401a9b9..6e7c31e592 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ReplicaSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ReplicaSetStatus represents the current status of a ReplicaSet. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -90,6 +93,7 @@ public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { * @return availableReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replica set.") public Integer getAvailableReplicas() { return availableReplicas; } @@ -117,6 +121,7 @@ public V1ReplicaSetStatus addConditionsItem(V1ReplicaSetCondition conditionsItem * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents the latest available observations of a replica set's current state.") public List getConditions() { return conditions; } @@ -136,6 +141,7 @@ public V1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { * @return fullyLabeledReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replicaset.") public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } @@ -155,6 +161,7 @@ public V1ReplicaSetStatus observedGeneration(Long observedGeneration) { * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.") public Long getObservedGeneration() { return observedGeneration; } @@ -174,6 +181,7 @@ public V1ReplicaSetStatus readyReplicas(Integer readyReplicas) { * @return readyReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; } @@ -193,6 +201,7 @@ public V1ReplicaSetStatus replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") public Integer getReplicas() { return replicas; } 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 221da3b79c..802d219334 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ReplicationControllerSpec; import io.kubernetes.client.openapi.models.V1ReplicationControllerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ReplicationController represents the configuration of a replication controller. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicationController represents the configuration of a replication controller.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1ReplicationController apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1ReplicationController kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1ReplicationController metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1ReplicationController spec(V1ReplicationControllerSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ReplicationControllerSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1ReplicationController status(V1ReplicationControllerStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ReplicationControllerStatus getStatus() { return status; } 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 f2f5383a29..21a692943f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicationControllerCondition describes the state of a replication controller at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1ReplicationControllerCondition lastTransitionTime(OffsetDateTime lastTr * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1ReplicationControllerCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1ReplicationControllerCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1ReplicationControllerCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1ReplicationControllerCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of replication controller condition.") public String getType() { return type; } 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 b4b2069800..a0de02def0 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ReplicationController; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ReplicationControllerList is a collection of replication controllers. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ReplicationControllerList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ReplicationControllerList addItemsItem(V1ReplicationController itemsIte * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ReplicationControllerList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ReplicationControllerList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 75ed6a1f69..71c0528fa6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * ReplicationControllerSpec is the specification of a replication controller. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicationControllerSpec is the specification of a replication controller.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -82,6 +85,7 @@ public V1ReplicationControllerSpec minReadySeconds(Integer minReadySeconds) { * @return minReadySeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } @@ -101,6 +105,7 @@ public V1ReplicationControllerSpec replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller") public Integer getReplicas() { return replicas; } @@ -128,6 +133,7 @@ public V1ReplicationControllerSpec putSelectorItem(String key, String selectorIt * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") public Map getSelector() { return selector; } @@ -147,6 +153,7 @@ public V1ReplicationControllerSpec template(V1PodTemplateSpec template) { * @return template **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PodTemplateSpec getTemplate() { return template; } 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 e496a4dc4b..186a893892 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ReplicationControllerCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ReplicationControllerStatus represents the current status of a replication controller. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ReplicationControllerStatus represents the current status of a replication controller.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -90,6 +93,7 @@ public V1ReplicationControllerStatus availableReplicas(Integer availableReplicas * @return availableReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replication controller.") public Integer getAvailableReplicas() { return availableReplicas; } @@ -117,6 +121,7 @@ public V1ReplicationControllerStatus addConditionsItem(V1ReplicationControllerCo * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents the latest available observations of a replication controller's current state.") public List getConditions() { return conditions; } @@ -136,6 +141,7 @@ public V1ReplicationControllerStatus fullyLabeledReplicas(Integer fullyLabeledRe * @return fullyLabeledReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replication controller.") public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } @@ -155,6 +161,7 @@ public V1ReplicationControllerStatus observedGeneration(Long observedGeneration) * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed replication controller.") public Long getObservedGeneration() { return observedGeneration; } @@ -174,6 +181,7 @@ public V1ReplicationControllerStatus readyReplicas(Integer readyReplicas) { * @return readyReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The number of ready replicas for this replication controller.") public Integer getReadyReplicas() { return readyReplicas; } @@ -193,6 +201,7 @@ public V1ReplicationControllerStatus replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller") public Integer getReplicas() { return replicas; } 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 2a9ce872b0..0fc04cab09 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1FieldSelectorAttributes; import io.kubernetes.client.openapi.models.V1LabelSelectorAttributes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_FIELD_SELECTOR = "fieldSelector"; @SerializedName(SERIALIZED_NAME_FIELD_SELECTOR) @@ -101,6 +104,7 @@ public V1ResourceAttributes fieldSelector(V1FieldSelectorAttributes fieldSelecto * @return fieldSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FieldSelectorAttributes getFieldSelector() { return fieldSelector; } @@ -120,6 +124,7 @@ public V1ResourceAttributes group(String group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Group is the API Group of the Resource. \"*\" means all.") public String getGroup() { return group; } @@ -139,6 +144,7 @@ public V1ResourceAttributes labelSelector(V1LabelSelectorAttributes labelSelecto * @return labelSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelectorAttributes getLabelSelector() { return labelSelector; } @@ -158,6 +164,7 @@ public V1ResourceAttributes name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.") public String getName() { return name; } @@ -177,6 +184,7 @@ public V1ResourceAttributes namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview") public String getNamespace() { return namespace; } @@ -196,6 +204,7 @@ public V1ResourceAttributes resource(String resource) { * @return resource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resource is one of the existing resource types. \"*\" means all.") public String getResource() { return resource; } @@ -215,6 +224,7 @@ public V1ResourceAttributes subresource(String subresource) { * @return subresource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Subresource is one of the existing resource types. \"\" means none.") public String getSubresource() { return subresource; } @@ -234,6 +244,7 @@ public V1ResourceAttributes verb(String verb) { * @return verb **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") public String getVerb() { return verb; } @@ -253,6 +264,7 @@ public V1ResourceAttributes version(String version) { * @return version **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Version is the API Version of the Resource. \"*\" means all.") public String getVersion() { return version; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java index 8b37b59c45..1bd5100ca8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ResourceClaim references one entry in PodSpec.ResourceClaims. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaim references one entry in PodSpec.ResourceClaims.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1ResourceClaim name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1ResourceClaim request(String request) { * @return request **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.") public String getRequest() { return request; } 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 e9e290c5b7..f9fa36cbc3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceFieldSelector represents container resources (cpu, memory) and their output format") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) @@ -76,6 +79,7 @@ public V1ResourceFieldSelector containerName(String containerName) { * @return containerName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") public String getContainerName() { return containerName; } @@ -95,6 +99,7 @@ public V1ResourceFieldSelector divisor(Quantity divisor) { * @return divisor **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getDivisor() { return divisor; } @@ -114,6 +119,7 @@ public V1ResourceFieldSelector resource(String resource) { * @return resource **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Required: resource to select") public String getResource() { return resource; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java index 2a3eee4fa1..d8847a12f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceHealth { public static final String SERIALIZED_NAME_HEALTH = "health"; @SerializedName(SERIALIZED_NAME_HEALTH) @@ -71,6 +74,7 @@ public V1ResourceHealth health(String health) { * @return health **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status.") public String getHealth() { return health; } @@ -90,6 +94,7 @@ public V1ResourceHealth resourceID(String resourceID) { * @return resourceID **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.") public String getResourceID() { return resourceID; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java index da1ccb0489..fe0ef94789 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -93,6 +96,7 @@ public V1ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.") public List getApiGroups() { return apiGroups; } @@ -112,6 +116,7 @@ public V1ResourcePolicyRule clusterScope(Boolean clusterScope) { * @return clusterScope **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.") public Boolean getClusterScope() { return clusterScope; } @@ -139,6 +144,7 @@ public V1ResourcePolicyRule addNamespacesItem(String namespacesItem) { * @return namespaces **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.") public List getNamespaces() { return namespaces; } @@ -166,6 +172,7 @@ public V1ResourcePolicyRule addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.") public List getResources() { return resources; } @@ -193,6 +200,7 @@ public V1ResourcePolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.") public List getVerbs() { return verbs; } 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 7d6d420af3..961dc7e475 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ResourceQuotaSpec; import io.kubernetes.client.openapi.models.V1ResourceQuotaStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ResourceQuota sets aggregate quota restrictions enforced per namespace */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1ResourceQuota apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1ResourceQuota kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1ResourceQuota metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1ResourceQuota spec(V1ResourceQuotaSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceQuotaSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1ResourceQuota status(V1ResourceQuotaStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceQuotaStatus getStatus() { return status; } 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 b01d585e7f..1ca3de4c9e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ResourceQuota; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ResourceQuotaList is a list of ResourceQuota items. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ResourceQuotaList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ResourceQuotaList addItemsItem(V1ResourceQuota itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ResourceQuotaList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ResourceQuotaList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 1597d646ca..2e230d901a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ScopeSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) @@ -89,6 +92,7 @@ public V1ResourceQuotaSpec putHardItem(String key, Quantity hardItem) { * @return hard **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") public Map getHard() { return hard; } @@ -108,6 +112,7 @@ public V1ResourceQuotaSpec scopeSelector(V1ScopeSelector scopeSelector) { * @return scopeSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ScopeSelector getScopeSelector() { return scopeSelector; } @@ -135,6 +140,7 @@ public V1ResourceQuotaSpec addScopesItem(String scopesItem) { * @return scopes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.") public List getScopes() { return scopes; } 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 0e0b99bbcc..77b688d746 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * ResourceQuotaStatus defines the enforced hard limits and observed use. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) @@ -82,6 +85,7 @@ public V1ResourceQuotaStatus putHardItem(String key, Quantity hardItem) { * @return hard **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") public Map getHard() { return hard; } @@ -109,6 +113,7 @@ public V1ResourceQuotaStatus putUsedItem(String key, Quantity usedItem) { * @return used **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Used is the current observed total usage of the resource in the namespace.") public Map getUsed() { return used; } 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 8b6b46f69a..3826c19e1e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ResourceClaim; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * ResourceRequirements describes the compute resource requirements. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceRequirements describes the compute resource requirements.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) @@ -89,6 +92,7 @@ public V1ResourceRequirements addClaimsItem(V1ResourceClaim claimsItem) { * @return claims **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.") public List getClaims() { return claims; } @@ -116,6 +120,7 @@ public V1ResourceRequirements putLimitsItem(String key, Quantity limitsItem) { * @return limits **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getLimits() { return limits; } @@ -143,6 +148,7 @@ public V1ResourceRequirements putRequestsItem(String key, Quantity requestsItem) * @return requests **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getRequests() { return requests; } 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 bee48964b6..7ddeb61a54 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -89,6 +92,7 @@ public V1ResourceRule addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.") public List getApiGroups() { return apiGroups; } @@ -116,6 +120,7 @@ public V1ResourceRule addResourceNamesItem(String resourceNamesItem) { * @return resourceNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.") public List getResourceNames() { return resourceNames; } @@ -143,6 +148,7 @@ public V1ResourceRule addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.") public List getResources() { return resources; } @@ -170,6 +176,7 @@ public V1ResourceRule addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") public List getVerbs() { return verbs; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java index 0156339f80..7f5aff4e3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ResourceHealth; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,7 @@ /** * V1ResourceStatus */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ResourceStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -74,6 +76,7 @@ public V1ResourceStatus name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.") public String getName() { return name; } @@ -101,6 +104,7 @@ public V1ResourceStatus addResourcesItem(V1ResourceHealth resourcesItem) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.") public List getResources() { return resources; } 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 0b3c2efac1..ecda18ee0a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1Role apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -102,6 +106,7 @@ public V1Role kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -121,6 +126,7 @@ public V1Role metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -148,6 +154,7 @@ public V1Role addRulesItem(V1PolicyRule rulesItem) { * @return rules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Rules holds all the PolicyRules for this Role") public List getRules() { return rules; } 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 9d3b284b81..396efd2a6a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.RbacV1Subject; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1RoleRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -88,6 +91,7 @@ public V1RoleBinding apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -107,6 +111,7 @@ public V1RoleBinding kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -126,6 +131,7 @@ public V1RoleBinding metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -145,6 +151,7 @@ public V1RoleBinding roleRef(V1RoleRef roleRef) { * @return roleRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1RoleRef getRoleRef() { return roleRef; } @@ -172,6 +179,7 @@ public V1RoleBinding addSubjectsItem(RbacV1Subject subjectsItem) { * @return subjects **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") public List getSubjects() { return subjects; } 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 e841b6fdc1..64947fc890 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1RoleBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * RoleBindingList is a collection of RoleBindings */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "RoleBindingList is a collection of RoleBindings") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1RoleBindingList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1RoleBindingList addItemsItem(V1RoleBinding itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of RoleBindings") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1RoleBindingList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1RoleBindingList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 6c26de55c3..4fb56b9b31 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Role; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * RoleList is a collection of Roles */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "RoleList is a collection of Roles") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1RoleList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1RoleList addItemsItem(V1Role itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of Roles") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1RoleList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1RoleList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 a99e32eb10..31a1966c71 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * RoleRef contains information that points to the role being used */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "RoleRef contains information that points to the role being used") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -75,6 +78,7 @@ public V1RoleRef apiGroup(String apiGroup) { * @return apiGroup **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "APIGroup is the group for the resource being referenced") public String getApiGroup() { return apiGroup; } @@ -94,6 +98,7 @@ public V1RoleRef kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") public String getKind() { return kind; } @@ -113,6 +118,7 @@ public V1RoleRef name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") public String getName() { return name; } 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 95fa50b437..d64cd565e2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Spec to control the desired behavior of daemon set rolling update. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) @@ -72,6 +75,7 @@ public V1RollingUpdateDaemonSet maxSurge(IntOrString maxSurge) { * @return maxSurge **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxSurge() { return maxSurge; } @@ -91,6 +95,7 @@ public V1RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable) { * @return maxUnavailable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return 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 6ac451cd72..a41435e581 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Spec to control the desired behavior of rolling update. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Spec to control the desired behavior of rolling update.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) @@ -72,6 +75,7 @@ public V1RollingUpdateDeployment maxSurge(IntOrString maxSurge) { * @return maxSurge **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxSurge() { return maxSurge; } @@ -91,6 +95,7 @@ public V1RollingUpdateDeployment maxUnavailable(IntOrString maxUnavailable) { * @return maxUnavailable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return maxUnavailable; } 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 2e84c1405b..7246e33fac 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) @@ -72,6 +75,7 @@ public V1RollingUpdateStatefulSetStrategy maxUnavailable(IntOrString maxUnavaila * @return maxUnavailable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getMaxUnavailable() { return maxUnavailable; } @@ -91,6 +95,7 @@ public V1RollingUpdateStatefulSetStrategy partition(Integer partition) { * @return partition **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.") public Integer getPartition() { return 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 052b059839..a48aa2dc27 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -93,6 +96,7 @@ public V1RuleWithOperations addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -120,6 +124,7 @@ public V1RuleWithOperations addApiVersionsItem(String apiVersionsItem) { * @return apiVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -147,6 +152,7 @@ public V1RuleWithOperations addOperationsItem(String operationsItem) { * @return operations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -174,6 +180,7 @@ public V1RuleWithOperations addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } @@ -193,6 +200,7 @@ public V1RuleWithOperations scope(String scope) { * @return scope **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") public String getScope() { return scope; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java index 9b6ff491bc..75362238f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1Overhead; import io.kubernetes.client.openapi.models.V1Scheduling; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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 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://kubernetes.io/docs/concepts/containers/runtime-class/ */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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 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://kubernetes.io/docs/concepts/containers/runtime-class/") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -90,6 +93,7 @@ public V1RuntimeClass apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -109,6 +113,7 @@ public V1RuntimeClass handler(String handler) { * @return handler **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.") public String getHandler() { return handler; } @@ -128,6 +133,7 @@ public V1RuntimeClass kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -147,6 +153,7 @@ public V1RuntimeClass metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -166,6 +173,7 @@ public V1RuntimeClass overhead(V1Overhead overhead) { * @return overhead **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Overhead getOverhead() { return overhead; } @@ -185,6 +193,7 @@ public V1RuntimeClass scheduling(V1Scheduling scheduling) { * @return scheduling **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Scheduling getScheduling() { return scheduling; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java index 8a3d081c00..03fc31def2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1RuntimeClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * RuntimeClassList is a list of RuntimeClass objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1RuntimeClassList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1RuntimeClassList addItemsItem(V1RuntimeClass itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1RuntimeClassList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1RuntimeClassList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 8fef011b91..774e4c56f5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SELinuxOptions are the labels to be applied to the container */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SELinuxOptions are the labels to be applied to the container") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; @SerializedName(SERIALIZED_NAME_LEVEL) @@ -79,6 +82,7 @@ public V1SELinuxOptions level(String level) { * @return level **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Level is SELinux level label that applies to the container.") public String getLevel() { return level; } @@ -98,6 +102,7 @@ public V1SELinuxOptions role(String role) { * @return role **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Role is a SELinux role label that applies to the container.") public String getRole() { return role; } @@ -117,6 +122,7 @@ public V1SELinuxOptions type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type is a SELinux type label that applies to the container.") public String getType() { return type; } @@ -136,6 +142,7 @@ public V1SELinuxOptions user(String user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "User is a SELinux user label that applies to the container.") public String getUser() { return user; } 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 e3a6b2d0ae..d3beeb509b 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ScaleSpec; import io.kubernetes.client.openapi.models.V1ScaleStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Scale represents a scaling request for a resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Scale represents a scaling request for a resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Scale apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Scale kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Scale metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Scale spec(V1ScaleSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ScaleSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Scale status(V1ScaleStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ScaleStatus getStatus() { return status; } 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 d849f8e167..b1769f57d0 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -104,6 +107,7 @@ public V1ScaleIOPersistentVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"") public String getFsType() { return fsType; } @@ -123,6 +127,7 @@ public V1ScaleIOPersistentVolumeSource gateway(String gateway) { * @return gateway **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "gateway is the host address of the ScaleIO API Gateway.") public String getGateway() { return gateway; } @@ -142,6 +147,7 @@ public V1ScaleIOPersistentVolumeSource protectionDomain(String protectionDomain) * @return protectionDomain **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.") public String getProtectionDomain() { return protectionDomain; } @@ -161,6 +167,7 @@ public V1ScaleIOPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -180,6 +187,7 @@ public V1ScaleIOPersistentVolumeSource secretRef(V1SecretReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1SecretReference getSecretRef() { return secretRef; } @@ -199,6 +207,7 @@ public V1ScaleIOPersistentVolumeSource sslEnabled(Boolean sslEnabled) { * @return sslEnabled **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false") public Boolean getSslEnabled() { return sslEnabled; } @@ -218,6 +227,7 @@ public V1ScaleIOPersistentVolumeSource storageMode(String storageMode) { * @return storageMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") public String getStorageMode() { return storageMode; } @@ -237,6 +247,7 @@ public V1ScaleIOPersistentVolumeSource storagePool(String storagePool) { * @return storagePool **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storagePool is the ScaleIO Storage Pool associated with the protection domain.") public String getStoragePool() { return storagePool; } @@ -256,6 +267,7 @@ public V1ScaleIOPersistentVolumeSource system(String system) { * @return system **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "system is the name of the storage system as configured in ScaleIO.") public String getSystem() { return system; } @@ -275,6 +287,7 @@ public V1ScaleIOPersistentVolumeSource volumeName(String volumeName) { * @return volumeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.") public String getVolumeName() { return volumeName; } 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 f43541054c..941d9adbde 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ScaleIOVolumeSource represents a persistent ScaleIO volume */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -104,6 +107,7 @@ public V1ScaleIOVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".") public String getFsType() { return fsType; } @@ -123,6 +127,7 @@ public V1ScaleIOVolumeSource gateway(String gateway) { * @return gateway **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "gateway is the host address of the ScaleIO API Gateway.") public String getGateway() { return gateway; } @@ -142,6 +147,7 @@ public V1ScaleIOVolumeSource protectionDomain(String protectionDomain) { * @return protectionDomain **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.") public String getProtectionDomain() { return protectionDomain; } @@ -161,6 +167,7 @@ public V1ScaleIOVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -180,6 +187,7 @@ public V1ScaleIOVolumeSource secretRef(V1LocalObjectReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -199,6 +207,7 @@ public V1ScaleIOVolumeSource sslEnabled(Boolean sslEnabled) { * @return sslEnabled **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "sslEnabled Flag enable/disable SSL communication with Gateway, default false") public Boolean getSslEnabled() { return sslEnabled; } @@ -218,6 +227,7 @@ public V1ScaleIOVolumeSource storageMode(String storageMode) { * @return storageMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") public String getStorageMode() { return storageMode; } @@ -237,6 +247,7 @@ public V1ScaleIOVolumeSource storagePool(String storagePool) { * @return storagePool **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storagePool is the ScaleIO Storage Pool associated with the protection domain.") public String getStoragePool() { return storagePool; } @@ -256,6 +267,7 @@ public V1ScaleIOVolumeSource system(String system) { * @return system **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "system is the name of the storage system as configured in ScaleIO.") public String getSystem() { return system; } @@ -275,6 +287,7 @@ public V1ScaleIOVolumeSource volumeName(String volumeName) { * @return volumeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.") public String getVolumeName() { return volumeName; } 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 60382907a2..3c5d93d985 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ScaleSpec describes the attributes of a scale subresource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) @@ -67,6 +70,7 @@ public V1ScaleSpec replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "replicas is the desired number of instances for the scaled object.") public Integer getReplicas() { return 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 a44c1d3475..cebd869eeb 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ScaleStatus represents the current status of a scale subresource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) @@ -71,6 +74,7 @@ public V1ScaleStatus replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "replicas is the actual number of observed instances of the scaled object.") public Integer getReplicas() { return replicas; } @@ -90,6 +94,7 @@ public V1ScaleStatus selector(String selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/") public String getSelector() { return selector; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java index 354cb523df..f9819e7ce4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Toleration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) @@ -84,6 +87,7 @@ public V1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem) { * @return nodeSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.") public Map getNodeSelector() { return nodeSelector; } @@ -111,6 +115,7 @@ public V1Scheduling addTolerationsItem(V1Toleration tolerationsItem) { * @return tolerations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.") public List getTolerations() { return tolerations; } 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 ebf2d05b34..25b286b40f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) @@ -78,6 +81,7 @@ public V1ScopeSelector addMatchExpressionsItem(V1ScopedResourceSelectorRequireme * @return matchExpressions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of scope selector requirements by scope of the resources.") public List getMatchExpressions() { return matchExpressions; } 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 5eacee26dd..ff0d366cc3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) @@ -77,6 +80,7 @@ public V1ScopedResourceSelectorRequirement operator(String operator) { * @return operator **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.") public String getOperator() { return operator; } @@ -96,6 +100,7 @@ public V1ScopedResourceSelectorRequirement scopeName(String scopeName) { * @return scopeName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the scope that the selector applies to.") public String getScopeName() { return scopeName; } @@ -123,6 +128,7 @@ public V1ScopedResourceSelectorRequirement addValuesItem(String valuesItem) { * @return values **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") public List getValues() { return values; } 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 c3c72b4b8a..40126ef3d7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) @@ -71,6 +74,7 @@ public V1SeccompProfile localhostProfile(String localhostProfile) { * @return localhostProfile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.") public String getLocalhostProfile() { return localhostProfile; } @@ -90,6 +94,7 @@ public V1SeccompProfile type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.") public String getType() { return type; } 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 cfbbec52ef..4316c32753 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,8 +18,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.custom.MapUtils; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -52,7 +53,8 @@ /** * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -95,6 +97,7 @@ public V1Secret apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -122,6 +125,7 @@ public V1Secret putDataItem(String key, byte[] dataItem) { * @return data **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4") public Map getData() { return data; } @@ -141,6 +145,7 @@ public V1Secret immutable(Boolean immutable) { * @return immutable **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.") public Boolean getImmutable() { return immutable; } @@ -160,6 +165,7 @@ public V1Secret kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -179,6 +185,7 @@ public V1Secret metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -206,6 +213,7 @@ public V1Secret putStringDataItem(String key, String stringDataItem) { * @return stringData **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.") public Map getStringData() { return stringData; } @@ -225,6 +233,7 @@ public V1Secret type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types") public String getType() { return type; } @@ -245,7 +254,7 @@ public boolean equals(Object o) { } V1Secret v1Secret = (V1Secret) o; return Objects.equals(this.apiVersion, v1Secret.apiVersion) && - MapUtils.equals(this.data, v1Secret.data) && + Objects.equals(this.data, v1Secret.data) && Objects.equals(this.immutable, v1Secret.immutable) && Objects.equals(this.kind, v1Secret.kind) && Objects.equals(this.metadata, v1Secret.metadata) && 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 f67f128d35..999ac1da0a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1SecretEnvSource name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1SecretEnvSource optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specify whether the Secret must be defined") public Boolean getOptional() { return optional; } 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 f53258754e..e0c81e03ce 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SecretKeySelector selects a key of a Secret. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SecretKeySelector selects a key of a Secret.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -75,6 +78,7 @@ public V1SecretKeySelector key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The key of the secret to select from. Must be a valid secret key.") public String getKey() { return key; } @@ -94,6 +98,7 @@ public V1SecretKeySelector name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -113,6 +118,7 @@ public V1SecretKeySelector optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; } 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 f422703570..1857e7f8d4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Secret; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * SecretList is a list of Secret. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SecretList is a list of Secret.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1SecretList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1SecretList addItemsItem(V1Secret itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1SecretList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1SecretList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 6ac22eef90..b39b3f3e8a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -86,6 +89,7 @@ public V1SecretProjection addItemsItem(V1KeyToPath itemsItem) { * @return items **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } @@ -105,6 +109,7 @@ public V1SecretProjection name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -124,6 +129,7 @@ public V1SecretProjection optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "optional field specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; } 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 5e269967f8..55305b8bf8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1SecretReference name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "name is unique within a namespace to reference a secret resource.") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1SecretReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "namespace defines the space within which the secret name must be unique.") public String getNamespace() { return namespace; } 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 cca2efa5df..1d7b395c8e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -82,6 +85,7 @@ public V1SecretVolumeSource defaultMode(Integer defaultMode) { * @return defaultMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") public Integer getDefaultMode() { return defaultMode; } @@ -109,6 +113,7 @@ public V1SecretVolumeSource addItemsItem(V1KeyToPath itemsItem) { * @return items **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") public List getItems() { return items; } @@ -128,6 +133,7 @@ public V1SecretVolumeSource optional(Boolean optional) { * @return optional **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "optional field specify whether the Secret or its keys must be defined") public Boolean getOptional() { return optional; } @@ -147,6 +153,7 @@ public V1SecretVolumeSource secretName(String secretName) { * @return secretName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") public String getSecretName() { return secretName; } 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 480c45213b..2021cd4673 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +23,8 @@ import io.kubernetes.client.openapi.models.V1SELinuxOptions; import io.kubernetes.client.openapi.models.V1SeccompProfile; import io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) @@ -116,6 +119,7 @@ public V1SecurityContext allowPrivilegeEscalation(Boolean allowPrivilegeEscalati * @return allowPrivilegeEscalation **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.") public Boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation; } @@ -135,6 +139,7 @@ public V1SecurityContext appArmorProfile(V1AppArmorProfile appArmorProfile) { * @return appArmorProfile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AppArmorProfile getAppArmorProfile() { return appArmorProfile; } @@ -154,6 +159,7 @@ public V1SecurityContext capabilities(V1Capabilities capabilities) { * @return capabilities **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1Capabilities getCapabilities() { return capabilities; } @@ -173,6 +179,7 @@ public V1SecurityContext privileged(Boolean privileged) { * @return privileged **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.") public Boolean getPrivileged() { return privileged; } @@ -192,6 +199,7 @@ public V1SecurityContext procMount(String procMount) { * @return procMount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.") public String getProcMount() { return procMount; } @@ -211,6 +219,7 @@ public V1SecurityContext readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) * @return readOnlyRootFilesystem **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.") public Boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem; } @@ -230,6 +239,7 @@ public V1SecurityContext runAsGroup(Long runAsGroup) { * @return runAsGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsGroup() { return runAsGroup; } @@ -249,6 +259,7 @@ public V1SecurityContext runAsNonRoot(Boolean runAsNonRoot) { * @return runAsNonRoot **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") public Boolean getRunAsNonRoot() { return runAsNonRoot; } @@ -268,6 +279,7 @@ public V1SecurityContext runAsUser(Long runAsUser) { * @return runAsUser **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.") public Long getRunAsUser() { return runAsUser; } @@ -287,6 +299,7 @@ public V1SecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { * @return seLinuxOptions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } @@ -306,6 +319,7 @@ public V1SecurityContext seccompProfile(V1SeccompProfile seccompProfile) { * @return seccompProfile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SeccompProfile getSeccompProfile() { return seccompProfile; } @@ -325,6 +339,7 @@ public V1SecurityContext windowsOptions(V1WindowsSecurityContextOptions windowsO * @return windowsOptions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java index e0a6b8270d..5f4e0cdda2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SelectableField specifies the JSON path of a field that may be used with field selectors. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelectableField specifies the JSON path of a field that may be used with field selectors.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SelectableField { public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; @SerializedName(SERIALIZED_NAME_JSON_PATH) @@ -67,6 +70,7 @@ public V1SelectableField jsonPath(String jsonPath) { * @return jsonPath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.") public String getJsonPath() { return jsonPath; } 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 c9d3a34965..923f51ebac 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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 */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1SelfSubjectAccessReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1SelfSubjectAccessReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1SelfSubjectAccessReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1SelfSubjectAccessReview spec(V1SelfSubjectAccessReviewSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1SelfSubjectAccessReviewSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1SelfSubjectAccessReview status(V1SubjectAccessReviewStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SubjectAccessReviewStatus getStatus() { return status; } 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 f30c360f96..f4cff51217 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NonResourceAttributes; import io.kubernetes.client.openapi.models.V1ResourceAttributes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) @@ -73,6 +76,7 @@ public V1SelfSubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttribut * @return nonResourceAttributes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } @@ -92,6 +96,7 @@ public V1SelfSubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes res * @return resourceAttributes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java index 74118604c9..27fe2e34e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SelfSubjectReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1SelfSubjectReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1SelfSubjectReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1SelfSubjectReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1SelfSubjectReview status(V1SelfSubjectReviewStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SelfSubjectReviewStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java index 140e12228a..56335c9e9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1UserInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) @@ -68,6 +71,7 @@ public V1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { * @return userInfo **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1UserInfo getUserInfo() { return userInfo; } 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 3b1f81842e..2d06ca1015 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1SelfSubjectRulesReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1SelfSubjectRulesReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1SelfSubjectRulesReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1SelfSubjectRulesReview spec(V1SelfSubjectRulesReviewSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1SelfSubjectRulesReviewSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1SelfSubjectRulesReview status(V1SubjectRulesReviewStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SubjectRulesReviewStatus getStatus() { return status; } 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 1d8bf44ce7..0e8c196d5d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -67,6 +70,7 @@ public V1SelfSubjectRulesReviewSpec namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace to evaluate rules for. Required.") public String getNamespace() { return 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 524a61d565..8a4acbeb61 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) @@ -71,6 +74,7 @@ public V1ServerAddressByClientCIDR clientCIDR(String clientCIDR) { * @return clientCIDR **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The CIDR with which clients can match their IP to figure out the server address that they should use.") public String getClientCIDR() { return clientCIDR; } @@ -90,6 +94,7 @@ public V1ServerAddressByClientCIDR serverAddress(String serverAddress) { * @return serverAddress **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.") public String getServerAddress() { return serverAddress; } 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 e7c3efb267..591ed254d7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ServiceSpec; import io.kubernetes.client.openapi.models.V1ServiceStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1Service apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1Service kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1Service metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1Service spec(V1ServiceSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ServiceSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1Service status(V1ServiceStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ServiceStatus getStatus() { return status; } 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 d2e4ca4dfa..3c9ceb6c7c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1LocalObjectReference; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * 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 */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -92,6 +95,7 @@ public V1ServiceAccount apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -111,6 +115,7 @@ public V1ServiceAccount automountServiceAccountToken(Boolean automountServiceAcc * @return automountServiceAccountToken **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.") public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } @@ -138,6 +143,7 @@ public V1ServiceAccount addImagePullSecretsItem(V1LocalObjectReference imagePull * @return imagePullSecrets **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod") public List getImagePullSecrets() { return imagePullSecrets; } @@ -157,6 +163,7 @@ public V1ServiceAccount kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -176,6 +183,7 @@ public V1ServiceAccount metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -203,6 +211,7 @@ public V1ServiceAccount addSecretsItem(V1ObjectReference secretsItem) { * @return secrets **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret") public List getSecrets() { return secrets; } 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 4f1e3fd11b..34e7d77cf5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ServiceAccount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ServiceAccountList is a list of ServiceAccount objects */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ServiceAccountList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ServiceAccountList addItemsItem(V1ServiceAccount itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ServiceAccountList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ServiceAccountList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java index a03d93bdc2..8fcb200870 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ServiceAccountSubject holds detailed information for service-account-kind subject. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceAccountSubject holds detailed information for service-account-kind subject.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1ServiceAccountSubject name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1ServiceAccountSubject namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`namespace` is the namespace of matching ServiceAccount objects. Required.") public String getNamespace() { return namespace; } 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 60940661f7..d690255214 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * 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). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) @@ -75,6 +78,7 @@ public V1ServiceAccountTokenProjection audience(String audience) { * @return audience **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.") public String getAudience() { return audience; } @@ -94,6 +98,7 @@ public V1ServiceAccountTokenProjection expirationSeconds(Long expirationSeconds) * @return expirationSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.") public Long getExpirationSeconds() { return expirationSeconds; } @@ -113,6 +118,7 @@ public V1ServiceAccountTokenProjection path(String path) { * @return path **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "path is the path relative to the mount point of the file to project the token into.") public String getPath() { return path; } 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 349dac110d..8ff119d6f2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ServiceBackendPort is the service port being referenced. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceBackendPort is the service port being referenced.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1ServiceBackendPort name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1ServiceBackendPort number(Integer number) { * @return number **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".") public Integer getNumber() { return number; } 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 a79c0bc3a1..d6a4b6e999 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1Service; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ServiceList holds a list of services. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceList holds a list of services.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ServiceList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ServiceList addItemsItem(V1Service itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of services") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ServiceList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ServiceList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 1384ad6d9d..ad761c2fe1 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ServicePort contains information on service's port. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServicePort contains information on service's port.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -88,6 +91,7 @@ public V1ServicePort appProtocol(String appProtocol) { * @return appProtocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.") public String getAppProtocol() { return appProtocol; } @@ -107,6 +111,7 @@ public V1ServicePort name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.") public String getName() { return name; } @@ -126,6 +131,7 @@ public V1ServicePort nodePort(Integer nodePort) { * @return nodePort **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport") public Integer getNodePort() { return nodePort; } @@ -145,6 +151,7 @@ public V1ServicePort port(Integer port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The port that will be exposed by this service.") public Integer getPort() { return port; } @@ -164,6 +171,7 @@ public V1ServicePort protocol(String protocol) { * @return protocol **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.") public String getProtocol() { return protocol; } @@ -183,6 +191,7 @@ public V1ServicePort targetPort(IntOrString targetPort) { * @return targetPort **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getTargetPort() { return targetPort; } 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 72959abd8e..fd657610d8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ServicePort; import io.kubernetes.client.openapi.models.V1SessionAffinityConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * ServiceSpec describes the attributes that a user creates on a service. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @SerializedName(SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS) @@ -149,6 +152,7 @@ public V1ServiceSpec allocateLoadBalancerNodePorts(Boolean allocateLoadBalancerN * @return allocateLoadBalancerNodePorts **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.") public Boolean getAllocateLoadBalancerNodePorts() { return allocateLoadBalancerNodePorts; } @@ -168,6 +172,7 @@ public V1ServiceSpec clusterIP(String clusterIP) { * @return clusterIP **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public String getClusterIP() { return clusterIP; } @@ -195,6 +200,7 @@ public V1ServiceSpec addClusterIPsItem(String clusterIPsItem) { * @return clusterIPs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public List getClusterIPs() { return clusterIPs; } @@ -222,6 +228,7 @@ public V1ServiceSpec addExternalIPsItem(String externalIPsItem) { * @return externalIPs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.") public List getExternalIPs() { return externalIPs; } @@ -241,6 +248,7 @@ public V1ServiceSpec externalName(String externalName) { * @return externalName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".") public String getExternalName() { return externalName; } @@ -260,6 +268,7 @@ public V1ServiceSpec externalTrafficPolicy(String externalTrafficPolicy) { * @return externalTrafficPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.") public String getExternalTrafficPolicy() { return externalTrafficPolicy; } @@ -279,6 +288,7 @@ public V1ServiceSpec healthCheckNodePort(Integer healthCheckNodePort) { * @return healthCheckNodePort **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.") public Integer getHealthCheckNodePort() { return healthCheckNodePort; } @@ -298,6 +308,7 @@ public V1ServiceSpec internalTrafficPolicy(String internalTrafficPolicy) { * @return internalTrafficPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).") public String getInternalTrafficPolicy() { return internalTrafficPolicy; } @@ -325,6 +336,7 @@ public V1ServiceSpec addIpFamiliesItem(String ipFamiliesItem) { * @return ipFamilies **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.") public List getIpFamilies() { return ipFamilies; } @@ -344,6 +356,7 @@ public V1ServiceSpec ipFamilyPolicy(String ipFamilyPolicy) { * @return ipFamilyPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.") public String getIpFamilyPolicy() { return ipFamilyPolicy; } @@ -363,6 +376,7 @@ public V1ServiceSpec loadBalancerClass(String loadBalancerClass) { * @return loadBalancerClass **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.") public String getLoadBalancerClass() { return loadBalancerClass; } @@ -382,6 +396,7 @@ public V1ServiceSpec loadBalancerIP(String loadBalancerIP) { * @return loadBalancerIP **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.") public String getLoadBalancerIP() { return loadBalancerIP; } @@ -409,6 +424,7 @@ public V1ServiceSpec addLoadBalancerSourceRangesItem(String loadBalancerSourceRa * @return loadBalancerSourceRanges **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/") public List getLoadBalancerSourceRanges() { return loadBalancerSourceRanges; } @@ -436,6 +452,7 @@ public V1ServiceSpec addPortsItem(V1ServicePort portsItem) { * @return ports **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public List getPorts() { return ports; } @@ -455,6 +472,7 @@ public V1ServiceSpec publishNotReadyAddresses(Boolean publishNotReadyAddresses) * @return publishNotReadyAddresses **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.") public Boolean getPublishNotReadyAddresses() { return publishNotReadyAddresses; } @@ -482,6 +500,7 @@ public V1ServiceSpec putSelectorItem(String key, String selectorItem) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/") public Map getSelector() { return selector; } @@ -501,6 +520,7 @@ public V1ServiceSpec sessionAffinity(String sessionAffinity) { * @return sessionAffinity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") public String getSessionAffinity() { return sessionAffinity; } @@ -520,6 +540,7 @@ public V1ServiceSpec sessionAffinityConfig(V1SessionAffinityConfig sessionAffini * @return sessionAffinityConfig **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SessionAffinityConfig getSessionAffinityConfig() { return sessionAffinityConfig; } @@ -539,6 +560,7 @@ public V1ServiceSpec trafficDistribution(String trafficDistribution) { * @return trafficDistribution **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.") public String getTrafficDistribution() { return trafficDistribution; } @@ -558,6 +580,7 @@ public V1ServiceSpec type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types") public String getType() { return type; } 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 b5307f47cd..8166677609 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; import io.kubernetes.client.openapi.models.V1LoadBalancerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ServiceStatus represents the current status of a service. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceStatus represents the current status of a service.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -83,6 +86,7 @@ public V1ServiceStatus addConditionsItem(V1Condition conditionsItem) { * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Current service state") public List getConditions() { return conditions; } @@ -102,6 +106,7 @@ public V1ServiceStatus loadBalancer(V1LoadBalancerStatus loadBalancer) { * @return loadBalancer **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LoadBalancerStatus getLoadBalancer() { return 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 3c2c1606f1..dbf017be76 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ClientIPConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * SessionAffinityConfig represents the configurations of session affinity. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; @SerializedName(SERIALIZED_NAME_CLIENT_I_P) @@ -68,6 +71,7 @@ public V1SessionAffinityConfig clientIP(V1ClientIPConfig clientIP) { * @return clientIP **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ClientIPConfig getClientIP() { return clientIP; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java index db62a62af1..cde730914c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SleepAction describes a \"sleep\" action. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SleepAction describes a \"sleep\" action.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SleepAction { public static final String SERIALIZED_NAME_SECONDS = "seconds"; @SerializedName(SERIALIZED_NAME_SECONDS) @@ -67,6 +70,7 @@ public V1SleepAction seconds(Long seconds) { * @return seconds **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Seconds is the number of seconds to sleep.") public Long getSeconds() { return seconds; } 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 6a19798a42..06856f126c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1StatefulSetSpec; import io.kubernetes.client.openapi.models.V1StatefulSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1StatefulSet apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1StatefulSet kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1StatefulSet metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1StatefulSet spec(V1StatefulSetSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StatefulSetSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1StatefulSet status(V1StatefulSetStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StatefulSetStatus getStatus() { return status; } 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 17774e1128..2c48dd8bc6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * StatefulSetCondition describes the state of a statefulset at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1StatefulSetCondition lastTransitionTime(OffsetDateTime lastTransitionTi * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1StatefulSetCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1StatefulSetCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1StatefulSetCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1StatefulSetCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of statefulset condition.") public String getType() { return type; } 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 400032aada..7b75026999 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1StatefulSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * StatefulSetList is a collection of StatefulSets. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StatefulSetList is a collection of StatefulSets.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1StatefulSetList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1StatefulSetList addItemsItem(V1StatefulSet itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of stateful sets.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1StatefulSetList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1StatefulSetList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java index 74f25eb383..bca12da646 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSetOrdinals { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -67,6 +70,7 @@ public V1StatefulSetOrdinals start(Integer start) { * @return start **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas).") public Integer getStart() { return start; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java index 3b07ed52d6..b18dc3de62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; @SerializedName(SERIALIZED_NAME_WHEN_DELETED) @@ -71,6 +74,7 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenDeleted(String when * @return whenDeleted **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.") public String getWhenDeleted() { return whenDeleted; } @@ -90,6 +94,7 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicy whenScaled(String whenS * @return whenScaled **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.") public String getWhenScaled() { return whenScaled; } 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 29877afe48..799b102d4c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +24,8 @@ import io.kubernetes.client.openapi.models.V1StatefulSetOrdinals; import io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy; import io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -56,7 +58,8 @@ /** * A StatefulSetSpec is the specification of a StatefulSet. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -115,6 +118,7 @@ public V1StatefulSetSpec minReadySeconds(Integer minReadySeconds) { * @return minReadySeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } @@ -134,6 +138,7 @@ public V1StatefulSetSpec ordinals(V1StatefulSetOrdinals ordinals) { * @return ordinals **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StatefulSetOrdinals getOrdinals() { return ordinals; } @@ -153,6 +158,7 @@ public V1StatefulSetSpec persistentVolumeClaimRetentionPolicy(V1StatefulSetPersi * @return persistentVolumeClaimRetentionPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy() { return persistentVolumeClaimRetentionPolicy; } @@ -172,6 +178,7 @@ public V1StatefulSetSpec podManagementPolicy(String podManagementPolicy) { * @return podManagementPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.") public String getPodManagementPolicy() { return podManagementPolicy; } @@ -191,6 +198,7 @@ public V1StatefulSetSpec replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.") public Integer getReplicas() { return replicas; } @@ -210,6 +218,7 @@ public V1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * @return revisionHistoryLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.") public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } @@ -229,6 +238,7 @@ public V1StatefulSetSpec selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1LabelSelector getSelector() { return selector; } @@ -248,6 +258,7 @@ public V1StatefulSetSpec serviceName(String serviceName) { * @return serviceName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.") public String getServiceName() { return serviceName; } @@ -267,6 +278,7 @@ public V1StatefulSetSpec template(V1PodTemplateSpec template) { * @return template **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PodTemplateSpec getTemplate() { return template; } @@ -286,6 +298,7 @@ public V1StatefulSetSpec updateStrategy(V1StatefulSetUpdateStrategy updateStrate * @return updateStrategy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StatefulSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } @@ -313,6 +326,7 @@ public V1StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClaim vol * @return volumeClaimTemplates **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.") public List getVolumeClaimTemplates() { return volumeClaimTemplates; } 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 32929e35f4..1df9233f58 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1StatefulSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * StatefulSetStatus represents the current state of a StatefulSet. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -106,6 +109,7 @@ public V1StatefulSetStatus availableReplicas(Integer availableReplicas) { * @return availableReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.") public Integer getAvailableReplicas() { return availableReplicas; } @@ -125,6 +129,7 @@ public V1StatefulSetStatus collisionCount(Integer collisionCount) { * @return collisionCount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") public Integer getCollisionCount() { return collisionCount; } @@ -152,6 +157,7 @@ public V1StatefulSetStatus addConditionsItem(V1StatefulSetCondition conditionsIt * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents the latest available observations of a statefulset's current state.") public List getConditions() { return conditions; } @@ -171,6 +177,7 @@ public V1StatefulSetStatus currentReplicas(Integer currentReplicas) { * @return currentReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.") public Integer getCurrentReplicas() { return currentReplicas; } @@ -190,6 +197,7 @@ public V1StatefulSetStatus currentRevision(String currentRevision) { * @return currentRevision **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).") public String getCurrentRevision() { return currentRevision; } @@ -209,6 +217,7 @@ public V1StatefulSetStatus observedGeneration(Long observedGeneration) { * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.") public Long getObservedGeneration() { return observedGeneration; } @@ -228,6 +237,7 @@ public V1StatefulSetStatus readyReplicas(Integer readyReplicas) { * @return readyReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.") public Integer getReadyReplicas() { return readyReplicas; } @@ -247,6 +257,7 @@ public V1StatefulSetStatus replicas(Integer replicas) { * @return replicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "replicas is the number of Pods created by the StatefulSet controller.") public Integer getReplicas() { return replicas; } @@ -266,6 +277,7 @@ public V1StatefulSetStatus updateRevision(String updateRevision) { * @return updateRevision **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)") public String getUpdateRevision() { return updateRevision; } @@ -285,6 +297,7 @@ public V1StatefulSetStatus updatedReplicas(Integer updatedReplicas) { * @return updatedReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.") public Integer getUpdatedReplicas() { return updatedReplicas; } 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 2c602a0c12..acbb563289 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) @@ -72,6 +75,7 @@ public V1StatefulSetUpdateStrategy rollingUpdate(V1RollingUpdateStatefulSetStrat * @return rollingUpdate **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1RollingUpdateStatefulSetStrategy getRollingUpdate() { return rollingUpdate; } @@ -91,6 +95,7 @@ public V1StatefulSetUpdateStrategy type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.") public String getType() { return type; } 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 b8c0a94364..8faeacd29e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1StatusDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * Status is a return value for calls that don't return other objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Status is a return value for calls that don't return other objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -97,6 +100,7 @@ public V1Status apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -116,6 +120,7 @@ public V1Status code(Integer code) { * @return code **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Suggested HTTP return code for this status, 0 if not set.") public Integer getCode() { return code; } @@ -135,6 +140,7 @@ public V1Status details(V1StatusDetails details) { * @return details **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StatusDetails getDetails() { return details; } @@ -154,6 +160,7 @@ public V1Status kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -173,6 +180,7 @@ public V1Status message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human-readable description of the status of this operation.") public String getMessage() { return message; } @@ -192,6 +200,7 @@ public V1Status metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } @@ -211,6 +220,7 @@ public V1Status reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.") public String getReason() { return reason; } @@ -230,6 +240,7 @@ public V1Status status(String status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") public String getStatus() { return status; } @@ -378,8 +389,7 @@ public void write(JsonWriter out, V1Status value) throws IOException { @Override public V1Status read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); - // Disable validation so delete API can tolerate non-status return object (graceful deletion) - // validateJsonObject(jsonObj); + validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); } 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 1e5c091e76..1331fb9ac9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) @@ -75,6 +78,7 @@ public V1StatusCause field(String field) { * @return field **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\"") public String getField() { return field; } @@ -94,6 +98,7 @@ public V1StatusCause message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human-readable description of the cause of the error. This field may be presented as-is to a reader.") public String getMessage() { return message; } @@ -113,6 +118,7 @@ public V1StatusCause reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A machine-readable description of the cause of the error. If this value is empty there is no information available.") public String getReason() { return reason; } 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 31b5e04a2a..dd29e7d591 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1StatusCause; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @SerializedName(SERIALIZED_NAME_CAUSES) @@ -98,6 +101,7 @@ public V1StatusDetails addCausesItem(V1StatusCause causesItem) { * @return causes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.") public List getCauses() { return causes; } @@ -117,6 +121,7 @@ public V1StatusDetails group(String group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The group attribute of the resource associated with the status StatusReason.") public String getGroup() { return group; } @@ -136,6 +141,7 @@ public V1StatusDetails kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } @@ -155,6 +161,7 @@ public V1StatusDetails name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).") public String getName() { return name; } @@ -174,6 +181,7 @@ public V1StatusDetails retryAfterSeconds(Integer retryAfterSeconds) { * @return retryAfterSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.") public Integer getRetryAfterSeconds() { return retryAfterSeconds; } @@ -193,6 +201,7 @@ public V1StatusDetails uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids") public String getUid() { return uid; } 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 5b6fedf42c..ffccc5bc27 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1TopologySelectorTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; @SerializedName(SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION) @@ -109,6 +112,7 @@ public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { * @return allowVolumeExpansion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "allowVolumeExpansion shows whether the storage class allow volume expand.") public Boolean getAllowVolumeExpansion() { return allowVolumeExpansion; } @@ -136,6 +140,7 @@ public V1StorageClass addAllowedTopologiesItem(V1TopologySelectorTerm allowedTop * @return allowedTopologies **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.") public List getAllowedTopologies() { return allowedTopologies; } @@ -155,6 +160,7 @@ public V1StorageClass apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -174,6 +180,7 @@ public V1StorageClass kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -193,6 +200,7 @@ public V1StorageClass metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -220,6 +228,7 @@ public V1StorageClass addMountOptionsItem(String mountOptionsItem) { * @return mountOptions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.") public List getMountOptions() { return mountOptions; } @@ -247,6 +256,7 @@ public V1StorageClass putParametersItem(String key, String parametersItem) { * @return parameters **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "parameters holds the parameters for the provisioner that should create volumes of this storage class.") public Map getParameters() { return parameters; } @@ -266,6 +276,7 @@ public V1StorageClass provisioner(String provisioner) { * @return provisioner **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "provisioner indicates the type of the provisioner.") public String getProvisioner() { return provisioner; } @@ -285,6 +296,7 @@ public V1StorageClass reclaimPolicy(String reclaimPolicy) { * @return reclaimPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.") public String getReclaimPolicy() { return reclaimPolicy; } @@ -304,6 +316,7 @@ public V1StorageClass volumeBindingMode(String volumeBindingMode) { * @return volumeBindingMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.") public String getVolumeBindingMode() { return volumeBindingMode; } 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 460753c3e7..d689075571 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1StorageClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * StorageClassList is a collection of storage classes. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StorageClassList is a collection of storage classes.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1StorageClassList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1StorageClassList addItemsItem(V1StorageClass itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of StorageClasses") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1StorageClassList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1StorageClassList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 5fd5d82518..6339140523 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Represents a StorageOS persistent volume resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a StorageOS persistent volume resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -84,6 +87,7 @@ public V1StorageOSPersistentVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } @@ -103,6 +107,7 @@ public V1StorageOSPersistentVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -122,6 +127,7 @@ public V1StorageOSPersistentVolumeSource secretRef(V1ObjectReference secretRef) * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectReference getSecretRef() { return secretRef; } @@ -141,6 +147,7 @@ public V1StorageOSPersistentVolumeSource volumeName(String volumeName) { * @return volumeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") public String getVolumeName() { return volumeName; } @@ -160,6 +167,7 @@ public V1StorageOSPersistentVolumeSource volumeNamespace(String volumeNamespace) * @return volumeNamespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.") public String getVolumeNamespace() { return volumeNamespace; } 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 b7d78fdde2..e945f58dc9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Represents a StorageOS persistent volume resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a StorageOS persistent volume resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -84,6 +87,7 @@ public V1StorageOSVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } @@ -103,6 +107,7 @@ public V1StorageOSVolumeSource readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") public Boolean getReadOnly() { return readOnly; } @@ -122,6 +127,7 @@ public V1StorageOSVolumeSource secretRef(V1LocalObjectReference secretRef) { * @return secretRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LocalObjectReference getSecretRef() { return secretRef; } @@ -141,6 +147,7 @@ public V1StorageOSVolumeSource volumeName(String volumeName) { * @return volumeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") public String getVolumeName() { return volumeName; } @@ -160,6 +167,7 @@ public V1StorageOSVolumeSource volumeNamespace(String volumeNamespace) { * @return volumeNamespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.") public String getVolumeNamespace() { return volumeNamespace; } 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 150c0ef3b7..6c13aea17c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec; import io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * SubjectAccessReview checks whether or not a user or group can perform an action. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SubjectAccessReview checks whether or not a user or group can perform an action.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1SubjectAccessReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1SubjectAccessReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1SubjectAccessReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1SubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1SubjectAccessReviewSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1SubjectAccessReview status(V1SubjectAccessReviewStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SubjectAccessReviewStatus getStatus() { return status; } 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 669d850775..d1f52195a2 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NonResourceAttributes; import io.kubernetes.client.openapi.models.V1ResourceAttributes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) @@ -101,6 +104,7 @@ public V1SubjectAccessReviewSpec putExtraItem(String key, List extraItem * @return extra **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.") public Map> getExtra() { return extra; } @@ -128,6 +132,7 @@ public V1SubjectAccessReviewSpec addGroupsItem(String groupsItem) { * @return groups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Groups is the groups you're testing for.") public List getGroups() { return groups; } @@ -147,6 +152,7 @@ public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes n * @return nonResourceAttributes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } @@ -166,6 +172,7 @@ public V1SubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourc * @return resourceAttributes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } @@ -185,6 +192,7 @@ public V1SubjectAccessReviewSpec uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UID information about the requesting user.") public String getUid() { return uid; } @@ -204,6 +212,7 @@ public V1SubjectAccessReviewSpec user(String user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups") public String getUser() { return user; } 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 2afe190147..cfc6b86c5d 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SubjectAccessReviewStatus */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SubjectAccessReviewStatus") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; @SerializedName(SERIALIZED_NAME_ALLOWED) @@ -79,6 +82,7 @@ public V1SubjectAccessReviewStatus allowed(Boolean allowed) { * @return allowed **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Allowed is required. True if the action would be allowed, false otherwise.") public Boolean getAllowed() { return allowed; } @@ -98,6 +102,7 @@ public V1SubjectAccessReviewStatus denied(Boolean denied) { * @return denied **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.") public Boolean getDenied() { return denied; } @@ -117,6 +122,7 @@ public V1SubjectAccessReviewStatus evaluationError(String evaluationError) { * @return evaluationError **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.") public String getEvaluationError() { return evaluationError; } @@ -136,6 +142,7 @@ public V1SubjectAccessReviewStatus reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Reason is optional. It indicates why a request was allowed or denied.") public String getReason() { return reason; } 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 157948019f..d735e27000 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NonResourceRule; import io.kubernetes.client.openapi.models.V1ResourceRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) @@ -83,6 +86,7 @@ public V1SubjectRulesReviewStatus evaluationError(String evaluationError) { * @return evaluationError **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.") public String getEvaluationError() { return evaluationError; } @@ -102,6 +106,7 @@ public V1SubjectRulesReviewStatus incomplete(Boolean incomplete) { * @return incomplete **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.") public Boolean getIncomplete() { return incomplete; } @@ -129,6 +134,7 @@ public V1SubjectRulesReviewStatus addNonResourceRulesItem(V1NonResourceRule nonR * @return nonResourceRules **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") public List getNonResourceRules() { return nonResourceRules; } @@ -156,6 +162,7 @@ public V1SubjectRulesReviewStatus addResourceRulesItem(V1ResourceRule resourceRu * @return resourceRules **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ResourceRules 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.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java index 607fa91a1b..72c32108cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1SuccessPolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SuccessPolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -78,6 +81,7 @@ public V1SuccessPolicy addRulesItem(V1SuccessPolicyRule rulesItem) { * @return rules **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.") public List getRules() { return rules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java index b2ca4940e8..d95ef8fbfe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1SuccessPolicyRule { public static final String SERIALIZED_NAME_SUCCEEDED_COUNT = "succeededCount"; @SerializedName(SERIALIZED_NAME_SUCCEEDED_COUNT) @@ -71,6 +74,7 @@ public V1SuccessPolicyRule succeededCount(Integer succeededCount) { * @return succeededCount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.") public Integer getSucceededCount() { return succeededCount; } @@ -90,6 +94,7 @@ public V1SuccessPolicyRule succeededIndexes(String succeededIndexes) { * @return succeededIndexes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.") public String getSucceededIndexes() { return succeededIndexes; } 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 d5362ed47d..9e7008c2d8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Sysctl defines a kernel parameter to be set */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Sysctl defines a kernel parameter to be set") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1Sysctl name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of a property to set") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1Sysctl value(String value) { * @return value **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Value of a property to set") public String getValue() { return value; } 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 ab5223fe60..7e8f7ce9f4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.IntOrString; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * TCPSocketAction describes an action based on opening a socket */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TCPSocketAction describes an action based on opening a socket") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @@ -72,6 +75,7 @@ public V1TCPSocketAction host(String host) { * @return host **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Optional: Host name to connect to, defaults to the pod IP.") public String getHost() { return host; } @@ -91,6 +95,7 @@ public V1TCPSocketAction port(IntOrString port) { * @return port **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") public IntOrString getPort() { return port; } 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 e835311b39..9a639c972c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -80,6 +83,7 @@ public V1Taint effect(String effect) { * @return effect **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.") public String getEffect() { return effect; } @@ -99,6 +103,7 @@ public V1Taint key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Required. The taint key to be applied to a node.") public String getKey() { return key; } @@ -118,6 +123,7 @@ public V1Taint timeAdded(OffsetDateTime timeAdded) { * @return timeAdded **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.") public OffsetDateTime getTimeAdded() { return timeAdded; } @@ -137,6 +143,7 @@ public V1Taint value(String value) { * @return value **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The taint value corresponding to the taint key.") public String getValue() { return value; } 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 047e5188d4..281f4031bd 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1BoundObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * TokenRequestSpec contains client provided parameters of a token request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -86,6 +89,7 @@ public V1TokenRequestSpec addAudiencesItem(String audiencesItem) { * @return audiences **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.") public List getAudiences() { return audiences; } @@ -105,6 +109,7 @@ public V1TokenRequestSpec boundObjectRef(V1BoundObjectReference boundObjectRef) * @return boundObjectRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1BoundObjectReference getBoundObjectRef() { return boundObjectRef; } @@ -124,6 +129,7 @@ public V1TokenRequestSpec expirationSeconds(Long expirationSeconds) { * @return expirationSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.") public Long getExpirationSeconds() { return expirationSeconds; } 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 8a42b7cd54..a3d48ebad7 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * TokenRequestStatus is the result of a token request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TokenRequestStatus is the result of a token request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) @@ -72,6 +75,7 @@ public V1TokenRequestStatus expirationTimestamp(OffsetDateTime expirationTimesta * @return expirationTimestamp **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ExpirationTimestamp is the time of expiration of the returned token.") public OffsetDateTime getExpirationTimestamp() { return expirationTimestamp; } @@ -91,6 +95,7 @@ public V1TokenRequestStatus token(String token) { * @return token **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Token is the opaque bearer token.") public String getToken() { return token; } 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 9c13423548..9097c5c0e5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1TokenReviewSpec; import io.kubernetes.client.openapi.models.V1TokenReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1TokenReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1TokenReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1TokenReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1TokenReview spec(V1TokenReviewSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1TokenReviewSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1TokenReview status(V1TokenReviewStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TokenReviewStatus getStatus() { return status; } 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 dd264de8fe..46a7592ebb 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * TokenReviewSpec is a description of the token authentication request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -81,6 +84,7 @@ public V1TokenReviewSpec addAudiencesItem(String audiencesItem) { * @return audiences **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.") public List getAudiences() { return audiences; } @@ -100,6 +104,7 @@ public V1TokenReviewSpec token(String token) { * @return token **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Token is the opaque bearer token.") public String getToken() { return token; } 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 97d211be90..d6cc550658 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1UserInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * TokenReviewStatus is the result of the token authentication request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -90,6 +93,7 @@ public V1TokenReviewStatus addAudiencesItem(String audiencesItem) { * @return audiences **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.") public List getAudiences() { return audiences; } @@ -109,6 +113,7 @@ public V1TokenReviewStatus authenticated(Boolean authenticated) { * @return authenticated **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Authenticated indicates that the token was associated with a known user.") public Boolean getAuthenticated() { return authenticated; } @@ -128,6 +133,7 @@ public V1TokenReviewStatus error(String error) { * @return error **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Error indicates that the token couldn't be checked") public String getError() { return error; } @@ -147,6 +153,7 @@ public V1TokenReviewStatus user(V1UserInfo user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1UserInfo getUser() { return user; } 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 fe2230d307..681ef831d4 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -83,6 +86,7 @@ public V1Toleration effect(String effect) { * @return effect **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.") public String getEffect() { return effect; } @@ -102,6 +106,7 @@ public V1Toleration key(String key) { * @return key **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.") public String getKey() { return key; } @@ -121,6 +126,7 @@ public V1Toleration operator(String operator) { * @return operator **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.") public String getOperator() { return operator; } @@ -140,6 +146,7 @@ public V1Toleration tolerationSeconds(Long tolerationSeconds) { * @return tolerationSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.") public Long getTolerationSeconds() { return tolerationSeconds; } @@ -159,6 +166,7 @@ public V1Toleration value(String value) { * @return value **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.") public String getValue() { return value; } 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 019cc0e52a..9c58f63ba9 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -73,6 +76,7 @@ public V1TopologySelectorLabelRequirement key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The label key that the selector applies to.") public String getKey() { return key; } @@ -100,6 +104,7 @@ public V1TopologySelectorLabelRequirement addValuesItem(String valuesItem) { * @return values **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.") public List getValues() { return values; } 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 52bc62cea4..90f1557243 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) @@ -78,6 +81,7 @@ public V1TopologySelectorTerm addMatchLabelExpressionsItem(V1TopologySelectorLab * @return matchLabelExpressions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A list of topology selector requirements by labels.") public List getMatchLabelExpressions() { return matchLabelExpressions; } 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 d878693476..f1b83e2dc5 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * TopologySpreadConstraint specifies how to spread matching pods among the given topology. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -98,6 +101,7 @@ public V1TopologySpreadConstraint labelSelector(V1LabelSelector labelSelector) { * @return labelSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getLabelSelector() { return labelSelector; } @@ -125,6 +129,7 @@ public V1TopologySpreadConstraint addMatchLabelKeysItem(String matchLabelKeysIte * @return matchLabelKeys **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).") public List getMatchLabelKeys() { return matchLabelKeys; } @@ -144,6 +149,7 @@ public V1TopologySpreadConstraint maxSkew(Integer maxSkew) { * @return maxSkew **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.") public Integer getMaxSkew() { return maxSkew; } @@ -163,6 +169,7 @@ public V1TopologySpreadConstraint minDomains(Integer minDomains) { * @return minDomains **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.") public Integer getMinDomains() { return minDomains; } @@ -182,6 +189,7 @@ public V1TopologySpreadConstraint nodeAffinityPolicy(String nodeAffinityPolicy) * @return nodeAffinityPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.") public String getNodeAffinityPolicy() { return nodeAffinityPolicy; } @@ -201,6 +209,7 @@ public V1TopologySpreadConstraint nodeTaintsPolicy(String nodeTaintsPolicy) { * @return nodeTaintsPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.") public String getNodeTaintsPolicy() { return nodeTaintsPolicy; } @@ -220,6 +229,7 @@ public V1TopologySpreadConstraint topologyKey(String topologyKey) { * @return topologyKey **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.") public String getTopologyKey() { return topologyKey; } @@ -239,6 +249,7 @@ public V1TopologySpreadConstraint whenUnsatisfiable(String whenUnsatisfiable) { * @return whenUnsatisfiable **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.") public String getWhenUnsatisfiable() { return whenUnsatisfiable; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java index 626c56875c..afd1a5ec78 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ExpressionWarning; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) @@ -78,6 +81,7 @@ public V1TypeChecking addExpressionWarningsItem(V1ExpressionWarning expressionWa * @return expressionWarnings **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The type checking warnings for each expression.") public List getExpressionWarnings() { return expressionWarnings; } 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 69cc4ba70d..0667450a0f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -75,6 +78,7 @@ public V1TypedLocalObjectReference apiGroup(String apiGroup) { * @return apiGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") public String getApiGroup() { return apiGroup; } @@ -94,6 +98,7 @@ public V1TypedLocalObjectReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") public String getKind() { return kind; } @@ -113,6 +118,7 @@ public V1TypedLocalObjectReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java index 94ec4fd834..aee4269220 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,7 @@ /** * V1TypedObjectReference */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1TypedObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -79,6 +81,7 @@ public V1TypedObjectReference apiGroup(String apiGroup) { * @return apiGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") public String getApiGroup() { return apiGroup; } @@ -98,6 +101,7 @@ public V1TypedObjectReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") public String getKind() { return kind; } @@ -117,6 +121,7 @@ public V1TypedObjectReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") public String getName() { return name; } @@ -136,6 +141,7 @@ public V1TypedObjectReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.") public String getNamespace() { return namespace; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java index 0155893ae5..c13657ea9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) @@ -81,6 +84,7 @@ public V1UncountedTerminatedPods addFailedItem(String failedItem) { * @return failed **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "failed holds UIDs of failed Pods.") public List getFailed() { return failed; } @@ -108,6 +112,7 @@ public V1UncountedTerminatedPods addSucceededItem(String succeededItem) { * @return succeeded **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "succeeded holds UIDs of succeeded Pods.") public List getSucceeded() { return succeeded; } 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 44b6846c24..d33226a739 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * UserInfo holds the information about the user needed to implement the user.Info interface. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "UserInfo holds the information about the user needed to implement the user.Info interface.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) @@ -91,6 +94,7 @@ public V1UserInfo putExtraItem(String key, List extraItem) { * @return extra **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Any additional information provided by the authenticator.") public Map> getExtra() { return extra; } @@ -118,6 +122,7 @@ public V1UserInfo addGroupsItem(String groupsItem) { * @return groups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The names of groups this user is a part of.") public List getGroups() { return groups; } @@ -137,6 +142,7 @@ public V1UserInfo uid(String uid) { * @return uid **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") public String getUid() { return uid; } @@ -156,6 +162,7 @@ public V1UserInfo username(String username) { * @return username **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The name that uniquely identifies this user among all active users.") public String getUsername() { return username; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java index 9d01fdbe98..3add73bc42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * UserSubject holds detailed information for user-kind subject. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "UserSubject holds detailed information for user-kind subject.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1UserSubject name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`name` is the username that matches, or \"*\" to match all usernames. Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java index 6437e55eaf..346ed32d5c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicySpec; import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1ValidatingAdmissionPolicy apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1ValidatingAdmissionPolicy kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1ValidatingAdmissionPolicy spec(V1ValidatingAdmissionPolicySpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ValidatingAdmissionPolicySpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1ValidatingAdmissionPolicy status(V1ValidatingAdmissionPolicyStatus stat * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ValidatingAdmissionPolicyStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java index 7dece36f84..8af908f659 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBindingSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1ValidatingAdmissionPolicyBinding kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1ValidatingAdmissionPolicyBinding spec(V1ValidatingAdmissionPolicyBindin * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ValidatingAdmissionPolicyBindingSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java index a0ee7f24fb..8c05803925 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ValidatingAdmissionPolicyBindingList addItemsItem(V1ValidatingAdmission * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of PolicyBinding.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ValidatingAdmissionPolicyBindingList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java index f17854a0f5..bec75cb6b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1MatchResources; import io.kubernetes.client.openapi.models.V1ParamRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) @@ -83,6 +86,7 @@ public V1ValidatingAdmissionPolicyBindingSpec matchResources(V1MatchResources ma * @return matchResources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1MatchResources getMatchResources() { return matchResources; } @@ -102,6 +106,7 @@ public V1ValidatingAdmissionPolicyBindingSpec paramRef(V1ParamRef paramRef) { * @return paramRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ParamRef getParamRef() { return paramRef; } @@ -121,6 +126,7 @@ public V1ValidatingAdmissionPolicyBindingSpec policyName(String policyName) { * @return policyName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") public String getPolicyName() { return policyName; } @@ -148,6 +154,7 @@ public V1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(String va * @return validationActions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") public List getValidationActions() { return validationActions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java index 9befd7b379..85ac86eed9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ValidatingAdmissionPolicyList addItemsItem(V1ValidatingAdmissionPolicy * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ValidatingAdmissionPolicyList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java index e687d34c09..7825d4fece 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +24,8 @@ import io.kubernetes.client.openapi.models.V1ParamKind; import io.kubernetes.client.openapi.models.V1Validation; import io.kubernetes.client.openapi.models.V1Variable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -56,7 +58,8 @@ /** * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) @@ -107,6 +110,7 @@ public V1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1AuditAnnotation * @return auditAnnotations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.") public List getAuditAnnotations() { return auditAnnotations; } @@ -126,6 +130,7 @@ public V1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) { * @return failurePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -153,6 +158,7 @@ public V1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1MatchCondition m * @return matchConditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") public List getMatchConditions() { return matchConditions; } @@ -172,6 +178,7 @@ public V1ValidatingAdmissionPolicySpec matchConstraints(V1MatchResources matchCo * @return matchConstraints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1MatchResources getMatchConstraints() { return matchConstraints; } @@ -191,6 +198,7 @@ public V1ValidatingAdmissionPolicySpec paramKind(V1ParamKind paramKind) { * @return paramKind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ParamKind getParamKind() { return paramKind; } @@ -218,6 +226,7 @@ public V1ValidatingAdmissionPolicySpec addValidationsItem(V1Validation validatio * @return validations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") public List getValidations() { return validations; } @@ -245,6 +254,7 @@ public V1ValidatingAdmissionPolicySpec addVariablesItem(V1Variable variablesItem * @return variables **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") public List getVariables() { return variables; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java index 9d8f2e7a19..1f9cbd140e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; import io.kubernetes.client.openapi.models.V1TypeChecking; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -87,6 +90,7 @@ public V1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition condition * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") public List getConditions() { return conditions; } @@ -106,6 +110,7 @@ public V1ValidatingAdmissionPolicyStatus observedGeneration(Long observedGenerat * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The generation observed by the controller.") public Long getObservedGeneration() { return observedGeneration; } @@ -125,6 +130,7 @@ public V1ValidatingAdmissionPolicyStatus typeChecking(V1TypeChecking typeCheckin * @return typeChecking **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TypeChecking getTypeChecking() { return typeChecking; } 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 dbfdb4b1f9..5057d2bf11 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +22,8 @@ import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1MatchCondition; import io.kubernetes.client.openapi.models.V1RuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -54,7 +56,8 @@ /** * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -121,6 +124,7 @@ public V1ValidatingWebhook addAdmissionReviewVersionsItem(String admissionReview * @return admissionReviewVersions **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") public List getAdmissionReviewVersions() { return admissionReviewVersions; } @@ -140,6 +144,7 @@ public V1ValidatingWebhook clientConfig(AdmissionregistrationV1WebhookClientConf * @return clientConfig **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return clientConfig; } @@ -159,6 +164,7 @@ public V1ValidatingWebhook failurePolicy(String failurePolicy) { * @return failurePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -186,6 +192,7 @@ public V1ValidatingWebhook addMatchConditionsItem(V1MatchCondition matchConditio * @return matchConditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") public List getMatchConditions() { return matchConditions; } @@ -205,6 +212,7 @@ public V1ValidatingWebhook matchPolicy(String matchPolicy) { * @return matchPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } @@ -224,6 +232,7 @@ public V1ValidatingWebhook name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") public String getName() { return name; } @@ -243,6 +252,7 @@ public V1ValidatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) * @return namespaceSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -262,6 +272,7 @@ public V1ValidatingWebhook objectSelector(V1LabelSelector objectSelector) { * @return objectSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -289,6 +300,7 @@ public V1ValidatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { * @return rules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") public List getRules() { return rules; } @@ -308,6 +320,7 @@ public V1ValidatingWebhook sideEffects(String sideEffects) { * @return sideEffects **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.") public String getSideEffects() { return sideEffects; } @@ -327,6 +340,7 @@ public V1ValidatingWebhook timeoutSeconds(Integer timeoutSeconds) { * @return timeoutSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") public Integer getTimeoutSeconds() { return timeoutSeconds; } 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 bcd12da39f..e2e5981e4e 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1ValidatingWebhook; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ValidatingWebhookConfiguration apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -102,6 +106,7 @@ public V1ValidatingWebhookConfiguration kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -121,6 +126,7 @@ public V1ValidatingWebhookConfiguration metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -148,6 +154,7 @@ public V1ValidatingWebhookConfiguration addWebhooksItem(V1ValidatingWebhook webh * @return webhooks **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") public List getWebhooks() { return webhooks; } 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 47d250f754..461a901816 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1ValidatingWebhookConfigurationList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1ValidatingWebhookConfigurationList addItemsItem(V1ValidatingWebhookConf * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ValidatingWebhookConfiguration.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1ValidatingWebhookConfigurationList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1ValidatingWebhookConfigurationList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java index f661297b7f..ff4373fdd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Validation specifies the CEL expression which is used to apply the validation. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Validation { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -79,6 +82,7 @@ public V1Validation expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") public String getExpression() { return expression; } @@ -98,6 +102,7 @@ public V1Validation message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") public String getMessage() { return message; } @@ -117,6 +122,7 @@ public V1Validation messageExpression(String messageExpression) { * @return messageExpression **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"") public String getMessageExpression() { return messageExpression; } @@ -136,6 +142,7 @@ public V1Validation reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") public String getReason() { return reason; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java index 18bf7e0443..0111f4dad0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ValidationRule describes a validation rule written in the CEL expression language. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidationRule describes a validation rule written in the CEL expression language.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1ValidationRule { public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) @@ -87,6 +90,7 @@ public V1ValidationRule fieldPath(String fieldPath) { * @return fieldPath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`") public String getFieldPath() { return fieldPath; } @@ -106,6 +110,7 @@ public V1ValidationRule message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"") public String getMessage() { return message; } @@ -125,6 +130,7 @@ public V1ValidationRule messageExpression(String messageExpression) { * @return messageExpression **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"") public String getMessageExpression() { return messageExpression; } @@ -144,6 +150,7 @@ public V1ValidationRule optionalOldSelf(Boolean optionalOldSelf) { * @return optionalOldSelf **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value. When enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created. You may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes May not be set unless `oldSelf` is used in `rule`.") public Boolean getOptionalOldSelf() { return optionalOldSelf; } @@ -163,6 +170,7 @@ public V1ValidationRule reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.") public String getReason() { return reason; } @@ -182,6 +190,7 @@ public V1ValidationRule rule(String rule) { * @return rule **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"} If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"} The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as: - A schema with no type and x-kubernetes-preserve-unknown-fields set to true - An array where the items schema is of an \"unknown type\" - An object where the additionalProperties schema is of an \"unknown type\" Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"} - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"} - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"} Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. If `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`. By default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional variable whose value() is the same type as `self`. See the documentation for the `optionalOldSelf` field for details. Transition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.") public String getRule() { return rule; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java index cf9b62ba03..c29a8ce547 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,6 +74,7 @@ public V1Variable expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } @@ -90,6 +94,7 @@ public V1Variable name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } 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 a33c8e5757..64633a8b4a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,6 +48,8 @@ import io.kubernetes.client.openapi.models.V1SecretVolumeSource; import io.kubernetes.client.openapi.models.V1StorageOSVolumeSource; import io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -78,7 +80,8 @@ /** * Volume represents a named volume in a pod that may be accessed by any container in the pod. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Volume represents a named volume in a pod that may be accessed by any container in the pod.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) @@ -217,6 +220,7 @@ public V1Volume awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElast * @return awsElasticBlockStore **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } @@ -236,6 +240,7 @@ public V1Volume azureDisk(V1AzureDiskVolumeSource azureDisk) { * @return azureDisk **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } @@ -255,6 +260,7 @@ public V1Volume azureFile(V1AzureFileVolumeSource azureFile) { * @return azureFile **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1AzureFileVolumeSource getAzureFile() { return azureFile; } @@ -274,6 +280,7 @@ public V1Volume cephfs(V1CephFSVolumeSource cephfs) { * @return cephfs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CephFSVolumeSource getCephfs() { return cephfs; } @@ -293,6 +300,7 @@ public V1Volume cinder(V1CinderVolumeSource cinder) { * @return cinder **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CinderVolumeSource getCinder() { return cinder; } @@ -312,6 +320,7 @@ public V1Volume configMap(V1ConfigMapVolumeSource configMap) { * @return configMap **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ConfigMapVolumeSource getConfigMap() { return configMap; } @@ -331,6 +340,7 @@ public V1Volume csi(V1CSIVolumeSource csi) { * @return csi **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1CSIVolumeSource getCsi() { return csi; } @@ -350,6 +360,7 @@ public V1Volume downwardAPI(V1DownwardAPIVolumeSource downwardAPI) { * @return downwardAPI **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DownwardAPIVolumeSource getDownwardAPI() { return downwardAPI; } @@ -369,6 +380,7 @@ public V1Volume emptyDir(V1EmptyDirVolumeSource emptyDir) { * @return emptyDir **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1EmptyDirVolumeSource getEmptyDir() { return emptyDir; } @@ -388,6 +400,7 @@ public V1Volume ephemeral(V1EphemeralVolumeSource ephemeral) { * @return ephemeral **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1EphemeralVolumeSource getEphemeral() { return ephemeral; } @@ -407,6 +420,7 @@ public V1Volume fc(V1FCVolumeSource fc) { * @return fc **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FCVolumeSource getFc() { return fc; } @@ -426,6 +440,7 @@ public V1Volume flexVolume(V1FlexVolumeSource flexVolume) { * @return flexVolume **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FlexVolumeSource getFlexVolume() { return flexVolume; } @@ -445,6 +460,7 @@ public V1Volume flocker(V1FlockerVolumeSource flocker) { * @return flocker **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1FlockerVolumeSource getFlocker() { return flocker; } @@ -464,6 +480,7 @@ public V1Volume gcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentD * @return gcePersistentDisk **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } @@ -483,6 +500,7 @@ public V1Volume gitRepo(V1GitRepoVolumeSource gitRepo) { * @return gitRepo **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GitRepoVolumeSource getGitRepo() { return gitRepo; } @@ -502,6 +520,7 @@ public V1Volume glusterfs(V1GlusterfsVolumeSource glusterfs) { * @return glusterfs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1GlusterfsVolumeSource getGlusterfs() { return glusterfs; } @@ -521,6 +540,7 @@ public V1Volume hostPath(V1HostPathVolumeSource hostPath) { * @return hostPath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1HostPathVolumeSource getHostPath() { return hostPath; } @@ -540,6 +560,7 @@ public V1Volume image(V1ImageVolumeSource image) { * @return image **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ImageVolumeSource getImage() { return image; } @@ -559,6 +580,7 @@ public V1Volume iscsi(V1ISCSIVolumeSource iscsi) { * @return iscsi **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ISCSIVolumeSource getIscsi() { return iscsi; } @@ -578,6 +600,7 @@ public V1Volume name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } @@ -597,6 +620,7 @@ public V1Volume nfs(V1NFSVolumeSource nfs) { * @return nfs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NFSVolumeSource getNfs() { return nfs; } @@ -616,6 +640,7 @@ public V1Volume persistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persis * @return persistentVolumeClaim **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { return persistentVolumeClaim; } @@ -635,6 +660,7 @@ public V1Volume photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPe * @return photonPersistentDisk **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } @@ -654,6 +680,7 @@ public V1Volume portworxVolume(V1PortworxVolumeSource portworxVolume) { * @return portworxVolume **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } @@ -673,6 +700,7 @@ public V1Volume projected(V1ProjectedVolumeSource projected) { * @return projected **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ProjectedVolumeSource getProjected() { return projected; } @@ -692,6 +720,7 @@ public V1Volume quobyte(V1QuobyteVolumeSource quobyte) { * @return quobyte **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1QuobyteVolumeSource getQuobyte() { return quobyte; } @@ -711,6 +740,7 @@ public V1Volume rbd(V1RBDVolumeSource rbd) { * @return rbd **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1RBDVolumeSource getRbd() { return rbd; } @@ -730,6 +760,7 @@ public V1Volume scaleIO(V1ScaleIOVolumeSource scaleIO) { * @return scaleIO **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ScaleIOVolumeSource getScaleIO() { return scaleIO; } @@ -749,6 +780,7 @@ public V1Volume secret(V1SecretVolumeSource secret) { * @return secret **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretVolumeSource getSecret() { return secret; } @@ -768,6 +800,7 @@ public V1Volume storageos(V1StorageOSVolumeSource storageos) { * @return storageos **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1StorageOSVolumeSource getStorageos() { return storageos; } @@ -787,6 +820,7 @@ public V1Volume vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { * @return vsphereVolume **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } 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 772d30f65e..d1f8e05560 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec; import io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1VolumeAttachment apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1VolumeAttachment kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1VolumeAttachment metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1VolumeAttachment spec(V1VolumeAttachmentSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1VolumeAttachmentSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1VolumeAttachment status(V1VolumeAttachmentStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VolumeAttachmentStatus getStatus() { return status; } 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 8e182f3373..68a1f8fdd3 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1VolumeAttachment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * VolumeAttachmentList is a collection of VolumeAttachment objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1VolumeAttachmentList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1VolumeAttachmentList addItemsItem(V1VolumeAttachment itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of VolumeAttachments") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1VolumeAttachmentList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1VolumeAttachmentList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } 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 a36c36bc25..b051c520a8 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PersistentVolumeSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) @@ -72,6 +75,7 @@ public V1VolumeAttachmentSource inlineVolumeSpec(V1PersistentVolumeSpec inlineVo * @return inlineVolumeSpec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1PersistentVolumeSpec getInlineVolumeSpec() { return inlineVolumeSpec; } @@ -91,6 +95,7 @@ public V1VolumeAttachmentSource persistentVolumeName(String persistentVolumeName * @return persistentVolumeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "persistentVolumeName represents the name of the persistent volume to attach.") public String getPersistentVolumeName() { return persistentVolumeName; } 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 1353b54487..86d544906a 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeAttachmentSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; @SerializedName(SERIALIZED_NAME_ATTACHER) @@ -76,6 +79,7 @@ public V1VolumeAttachmentSpec attacher(String attacher) { * @return attacher **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().") public String getAttacher() { return attacher; } @@ -95,6 +99,7 @@ public V1VolumeAttachmentSpec nodeName(String nodeName) { * @return nodeName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "nodeName represents the node that the volume should be attached to.") public String getNodeName() { return nodeName; } @@ -114,6 +119,7 @@ public V1VolumeAttachmentSpec source(V1VolumeAttachmentSource source) { * @return source **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1VolumeAttachmentSource getSource() { return source; } 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 127e3ba17a..9d1aca47f6 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1VolumeError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) @@ -82,6 +85,7 @@ public V1VolumeAttachmentStatus attachError(V1VolumeError attachError) { * @return attachError **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VolumeError getAttachError() { return attachError; } @@ -101,6 +105,7 @@ public V1VolumeAttachmentStatus attached(Boolean attached) { * @return attached **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") public Boolean getAttached() { return attached; } @@ -128,6 +133,7 @@ public V1VolumeAttachmentStatus putAttachmentMetadataItem(String key, String att * @return attachmentMetadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") public Map getAttachmentMetadata() { return attachmentMetadata; } @@ -147,6 +153,7 @@ public V1VolumeAttachmentStatus detachError(V1VolumeError detachError) { * @return detachError **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1VolumeError getDetachError() { return detachError; } 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 3f2261324c..f36f7f0036 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * volumeDevice describes a mapping of a raw block device within a container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "volumeDevice describes a mapping of a raw block device within a container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) @@ -71,6 +74,7 @@ public V1VolumeDevice devicePath(String devicePath) { * @return devicePath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "devicePath is the path inside of the container that the device will be mapped to.") public String getDevicePath() { return devicePath; } @@ -90,6 +94,7 @@ public V1VolumeDevice name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name must match the name of a persistentVolumeClaim in the pod") public String getName() { return name; } 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 96b397f93e..3de5ef9c22 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * VolumeError captures an error encountered during a volume operation. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeError captures an error encountered during a volume operation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -72,6 +75,7 @@ public V1VolumeError message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.") public String getMessage() { return message; } @@ -91,6 +95,7 @@ public V1VolumeError time(OffsetDateTime time) { * @return time **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "time represents the time the error was encountered.") public OffsetDateTime getTime() { return 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 ed8331d823..44261f085f 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * VolumeMount describes a mounting of a Volume within a container. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) @@ -91,6 +94,7 @@ public V1VolumeMount mountPath(String mountPath) { * @return mountPath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Path within the container at which the volume should be mounted. Must not contain ':'.") public String getMountPath() { return mountPath; } @@ -110,6 +114,7 @@ public V1VolumeMount mountPropagation(String mountPropagation) { * @return mountPropagation **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).") public String getMountPropagation() { return mountPropagation; } @@ -129,6 +134,7 @@ public V1VolumeMount name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "This must match the Name of a Volume.") public String getName() { return name; } @@ -148,6 +154,7 @@ public V1VolumeMount readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.") public Boolean getReadOnly() { return readOnly; } @@ -167,6 +174,7 @@ public V1VolumeMount recursiveReadOnly(String recursiveReadOnly) { * @return recursiveReadOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled.") public String getRecursiveReadOnly() { return recursiveReadOnly; } @@ -186,6 +194,7 @@ public V1VolumeMount subPath(String subPath) { * @return subPath **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).") public String getSubPath() { return subPath; } @@ -205,6 +214,7 @@ public V1VolumeMount subPathExpr(String subPathExpr) { * @return subPathExpr **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.") public String getSubPathExpr() { return subPathExpr; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java index 0ba0c555d7..3b2169c086 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * VolumeMountStatus shows status of volume mounts. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeMountStatus shows status of volume mounts.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeMountStatus { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) @@ -79,6 +82,7 @@ public V1VolumeMountStatus mountPath(String mountPath) { * @return mountPath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "MountPath corresponds to the original VolumeMount.") public String getMountPath() { return mountPath; } @@ -98,6 +102,7 @@ public V1VolumeMountStatus name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name corresponds to the name of the original VolumeMount.") public String getName() { return name; } @@ -117,6 +122,7 @@ public V1VolumeMountStatus readOnly(Boolean readOnly) { * @return readOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ReadOnly corresponds to the original VolumeMount.") public Boolean getReadOnly() { return readOnly; } @@ -136,6 +142,7 @@ public V1VolumeMountStatus recursiveReadOnly(String recursiveReadOnly) { * @return recursiveReadOnly **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.") public String getRecursiveReadOnly() { return recursiveReadOnly; } 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 40151a0855..eb3ba01957 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) @@ -68,6 +71,7 @@ public V1VolumeNodeAffinity required(V1NodeSelector required) { * @return required **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeSelector getRequired() { return 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 e8e6204b6f..ea402e5c35 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * VolumeNodeResources is a set of resource limits for scheduling of volumes. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @@ -67,6 +70,7 @@ public V1VolumeNodeResources count(Integer count) { * @return count **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.") public Integer getCount() { return 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 6232fe3f2e..18a40e404c 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +23,8 @@ import io.kubernetes.client.openapi.models.V1DownwardAPIProjection; import io.kubernetes.client.openapi.models.V1SecretProjection; import io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * Projection that may be projected along with other supported volume types. Exactly one of these fields must be set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) @@ -88,6 +91,7 @@ public V1VolumeProjection clusterTrustBundle(V1ClusterTrustBundleProjection clus * @return clusterTrustBundle **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ClusterTrustBundleProjection getClusterTrustBundle() { return clusterTrustBundle; } @@ -107,6 +111,7 @@ public V1VolumeProjection configMap(V1ConfigMapProjection configMap) { * @return configMap **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ConfigMapProjection getConfigMap() { return configMap; } @@ -126,6 +131,7 @@ public V1VolumeProjection downwardAPI(V1DownwardAPIProjection downwardAPI) { * @return downwardAPI **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1DownwardAPIProjection getDownwardAPI() { return downwardAPI; } @@ -145,6 +151,7 @@ public V1VolumeProjection secret(V1SecretProjection secret) { * @return secret **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1SecretProjection getSecret() { return secret; } @@ -164,6 +171,7 @@ public V1VolumeProjection serviceAccountToken(V1ServiceAccountTokenProjection se * @return serviceAccountToken **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ServiceAccountTokenProjection getServiceAccountToken() { return serviceAccountToken; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java index 0725a60df9..57947d5fd3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * VolumeResourceRequirements describes the storage resource requirements for a volume. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeResourceRequirements describes the storage resource requirements for a volume.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VolumeResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) @@ -82,6 +85,7 @@ public V1VolumeResourceRequirements putLimitsItem(String key, Quantity limitsIte * @return limits **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getLimits() { return limits; } @@ -109,6 +113,7 @@ public V1VolumeResourceRequirements putRequestsItem(String key, Quantity request * @return requests **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") public Map getRequests() { return requests; } 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 2b205185d6..f9dc563b40 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Represents a vSphere volume resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Represents a vSphere volume resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -79,6 +82,7 @@ public V1VsphereVirtualDiskVolumeSource fsType(String fsType) { * @return fsType **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") public String getFsType() { return fsType; } @@ -98,6 +102,7 @@ public V1VsphereVirtualDiskVolumeSource storagePolicyID(String storagePolicyID) * @return storagePolicyID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.") public String getStoragePolicyID() { return storagePolicyID; } @@ -117,6 +122,7 @@ public V1VsphereVirtualDiskVolumeSource storagePolicyName(String storagePolicyNa * @return storagePolicyName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "storagePolicyName is the storage Policy Based Management (SPBM) profile name.") public String getStoragePolicyName() { return storagePolicyName; } @@ -136,6 +142,7 @@ public V1VsphereVirtualDiskVolumeSource volumePath(String volumePath) { * @return volumePath **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "volumePath is the path that identifies vSphere volume vmdk") public String getVolumePath() { return volumePath; } 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 7b9adb90fe..4546a38079 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Event represents a single event to a watched resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Event represents a single event to a watched resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; @SerializedName(SERIALIZED_NAME_OBJECT) @@ -71,6 +74,7 @@ public V1WatchEvent _object(Object _object) { * @return _object **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.") public Object getObject() { return _object; } @@ -90,6 +94,7 @@ public V1WatchEvent type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getType() { return type; } 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 780d14db5e..91f8256c85 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * WebhookConversion describes how to call a conversion webhook */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "WebhookConversion describes how to call a conversion webhook") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) @@ -74,6 +77,7 @@ public V1WebhookConversion clientConfig(ApiextensionsV1WebhookClientConfig clien * @return clientConfig **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public ApiextensionsV1WebhookClientConfig getClientConfig() { return clientConfig; } @@ -101,6 +105,7 @@ public V1WebhookConversion addConversionReviewVersionsItem(String conversionRevi * @return conversionReviewVersions **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.") public List getConversionReviewVersions() { return conversionReviewVersions; } 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 77645350a1..a96d450f48 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1PodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) @@ -72,6 +75,7 @@ public V1WeightedPodAffinityTerm podAffinityTerm(V1PodAffinityTerm podAffinityTe * @return podAffinityTerm **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1PodAffinityTerm getPodAffinityTerm() { return podAffinityTerm; } @@ -91,6 +95,7 @@ public V1WeightedPodAffinityTerm weight(Integer weight) { * @return weight **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.") public Integer getWeight() { return weight; } 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 7a2e3436de..dc4584ee08 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * WindowsSecurityContextOptions contain Windows-specific options and credentials. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) @@ -79,6 +82,7 @@ public V1WindowsSecurityContextOptions gmsaCredentialSpec(String gmsaCredentialS * @return gmsaCredentialSpec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.") public String getGmsaCredentialSpec() { return gmsaCredentialSpec; } @@ -98,6 +102,7 @@ public V1WindowsSecurityContextOptions gmsaCredentialSpecName(String gmsaCredent * @return gmsaCredentialSpecName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "GMSACredentialSpecName is the name of the GMSA credential spec to use.") public String getGmsaCredentialSpecName() { return gmsaCredentialSpecName; } @@ -117,6 +122,7 @@ public V1WindowsSecurityContextOptions hostProcess(Boolean hostProcess) { * @return hostProcess **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.") public Boolean getHostProcess() { return hostProcess; } @@ -136,6 +142,7 @@ public V1WindowsSecurityContextOptions runAsUserName(String runAsUserName) { * @return runAsUserName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") public String getRunAsUserName() { return runAsUserName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java index 1e2b41a513..69b9b467f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AuditAnnotation describes how to produce an audit annotation for an API request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1AuditAnnotation { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,6 +74,7 @@ public V1alpha1AuditAnnotation key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required.") public String getKey() { return key; } @@ -90,6 +94,7 @@ public V1alpha1AuditAnnotation valueExpression(String valueExpression) { * @return valueExpression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required.") public String getValueExpression() { return valueExpression; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java index ac70395808..a5cd3033e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1alpha1ClusterTrustBundle apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1alpha1ClusterTrustBundle kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1alpha1ClusterTrustBundle metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1alpha1ClusterTrustBundle spec(V1alpha1ClusterTrustBundleSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha1ClusterTrustBundleSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java index 98474802e9..4ac1e7d7a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha1ClusterTrustBundleList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha1ClusterTrustBundleList addItemsItem(V1alpha1ClusterTrustBundle it * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a collection of ClusterTrustBundle objects") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha1ClusterTrustBundleList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha1ClusterTrustBundleList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java index 19b3b04f0a..65f7ed8e2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ClusterTrustBundleSpec contains the signer and trust anchors. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) @@ -71,6 +74,7 @@ public V1alpha1ClusterTrustBundleSpec signerName(String signerName) { * @return signerName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "signerName indicates the associated signer, if any. In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest. If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.") public String getSignerName() { return signerName; } @@ -90,6 +94,7 @@ public V1alpha1ClusterTrustBundleSpec trustBundle(String trustBundle) { * @return trustBundle **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.") public String getTrustBundle() { return trustBundle; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java index 0c1a964ca6..fee8b01951 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ExpressionWarning is a warning information that targets a specific expression. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -71,6 +74,7 @@ public V1alpha1ExpressionWarning fieldRef(String fieldRef) { * @return fieldRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") public String getFieldRef() { return fieldRef; } @@ -90,6 +94,7 @@ public V1alpha1ExpressionWarning warning(String warning) { * @return warning **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") public String getWarning() { return warning; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java index eb5c7caa3e..f914a011b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * The names of the group, the version, and the resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "The names of the group, the version, and the resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1GroupVersionResource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -75,6 +78,7 @@ public V1alpha1GroupVersionResource group(String group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The name of the group.") public String getGroup() { return group; } @@ -94,6 +98,7 @@ public V1alpha1GroupVersionResource resource(String resource) { * @return resource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The name of the resource.") public String getResource() { return resource; } @@ -113,6 +118,7 @@ public V1alpha1GroupVersionResource version(String version) { * @return version **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The name of the version.") public String getVersion() { return version; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidate.java index 601bc3c594..6cbcd5e958 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidate.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1LeaseCandidateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1alpha1LeaseCandidate apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1alpha1LeaseCandidate kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1alpha1LeaseCandidate metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1alpha1LeaseCandidate spec(V1alpha1LeaseCandidateSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1LeaseCandidateSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateList.java index e011d3c9b2..46898988d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1LeaseCandidate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * LeaseCandidateList is a list of Lease objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LeaseCandidateList is a list of Lease objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha1LeaseCandidateList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha1LeaseCandidateList addItemsItem(V1alpha1LeaseCandidate itemsItem) * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is a list of schema objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha1LeaseCandidateList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha1LeaseCandidateList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateSpec.java index 8d48fca760..1e1ede0d50 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1LeaseCandidateSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -51,7 +53,8 @@ /** * LeaseCandidateSpec is a specification of a Lease. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) @@ -90,6 +93,7 @@ public V1alpha1LeaseCandidateSpec binaryVersion(String binaryVersion) { * @return binaryVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is \"OldestEmulationVersion\"") public String getBinaryVersion() { return binaryVersion; } @@ -109,6 +113,7 @@ public V1alpha1LeaseCandidateSpec emulationVersion(String emulationVersion) { * @return emulationVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"") public String getEmulationVersion() { return emulationVersion; } @@ -128,6 +133,7 @@ public V1alpha1LeaseCandidateSpec leaseName(String leaseName) { * @return leaseName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.") public String getLeaseName() { return leaseName; } @@ -147,6 +153,7 @@ public V1alpha1LeaseCandidateSpec pingTime(OffsetDateTime pingTime) { * @return pingTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.") public OffsetDateTime getPingTime() { return pingTime; } @@ -174,6 +181,7 @@ public V1alpha1LeaseCandidateSpec addPreferredStrategiesItem(String preferredStr * @return preferredStrategies **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y will be used. - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.") public List getPreferredStrategies() { return preferredStrategies; } @@ -193,6 +201,7 @@ public V1alpha1LeaseCandidateSpec renewTime(OffsetDateTime renewTime) { * @return renewTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.") public OffsetDateTime getRenewTime() { return renewTime; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java index 945923082e..b026df1532 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,7 @@ /** * V1alpha1MatchCondition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,6 +73,7 @@ public V1alpha1MatchCondition expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } @@ -90,6 +93,7 @@ public V1alpha1MatchCondition name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java index 4cc0ce5765..ceed3871dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -95,6 +98,7 @@ public V1alpha1MatchResources addExcludeResourceRulesItem(V1alpha1NamedRuleWithO * @return excludeResourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } @@ -114,6 +118,7 @@ public V1alpha1MatchResources matchPolicy(String matchPolicy) { * @return matchPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } @@ -133,6 +138,7 @@ public V1alpha1MatchResources namespaceSelector(V1LabelSelector namespaceSelecto * @return namespaceSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -152,6 +158,7 @@ public V1alpha1MatchResources objectSelector(V1LabelSelector objectSelector) { * @return objectSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -179,6 +186,7 @@ public V1alpha1MatchResources addResourceRulesItem(V1alpha1NamedRuleWithOperatio * @return resourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java index f7f2ecfe11..4b6782f7d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Describes the state of a migration at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Describes the state of a migration at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1MigrationCondition { public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) @@ -84,6 +87,7 @@ public V1alpha1MigrationCondition lastUpdateTime(OffsetDateTime lastUpdateTime) * @return lastUpdateTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The last time this condition was updated.") public OffsetDateTime getLastUpdateTime() { return lastUpdateTime; } @@ -103,6 +107,7 @@ public V1alpha1MigrationCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1alpha1MigrationCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1alpha1MigrationCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1alpha1MigrationCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of the condition.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java index 541280722b..4f4afae9fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -97,6 +100,7 @@ public V1alpha1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -124,6 +128,7 @@ public V1alpha1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem * @return apiVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -151,6 +156,7 @@ public V1alpha1NamedRuleWithOperations addOperationsItem(String operationsItem) * @return operations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -178,6 +184,7 @@ public V1alpha1NamedRuleWithOperations addResourceNamesItem(String resourceNames * @return resourceNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } @@ -205,6 +212,7 @@ public V1alpha1NamedRuleWithOperations addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } @@ -224,6 +232,7 @@ public V1alpha1NamedRuleWithOperations scope(String scope) { * @return scope **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") public String getScope() { return scope; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java index f08217319d..487c1f5ef4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ParamKind is a tuple of Group Kind and Version. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,6 +74,7 @@ public V1alpha1ParamKind apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } @@ -90,6 +94,7 @@ public V1alpha1ParamKind kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java index a9b51eef94..80eb3d2827 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -80,6 +83,7 @@ public V1alpha1ParamRef name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.") public String getName() { return name; } @@ -99,6 +103,7 @@ public V1alpha1ParamRef namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.") public String getNamespace() { return namespace; } @@ -118,6 +123,7 @@ public V1alpha1ParamRef parameterNotFoundAction(String parameterNotFoundAction) * @return parameterNotFoundAction **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny`") public String getParameterNotFoundAction() { return parameterNotFoundAction; } @@ -137,6 +143,7 @@ public V1alpha1ParamRef selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java index 077f780343..fd90dcfd14 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1SelfSubjectReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1alpha1SelfSubjectReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1alpha1SelfSubjectReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1alpha1SelfSubjectReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1alpha1SelfSubjectReview status(V1alpha1SelfSubjectReviewStatus status) * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1SelfSubjectReviewStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java index 2939ba2c8e..b5ec26efb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1UserInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) @@ -68,6 +71,7 @@ public V1alpha1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { * @return userInfo **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1UserInfo getUserInfo() { return userInfo; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java index 723b378e54..909b6f1649 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; @SerializedName(SERIALIZED_NAME_API_SERVER_I_D) @@ -81,6 +84,7 @@ public V1alpha1ServerStorageVersion apiServerID(String apiServerID) { * @return apiServerID **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The ID of the reporting API server.") public String getApiServerID() { return apiServerID; } @@ -108,6 +112,7 @@ public V1alpha1ServerStorageVersion addDecodableVersionsItem(String decodableVer * @return decodableVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.") public List getDecodableVersions() { return decodableVersions; } @@ -127,6 +132,7 @@ public V1alpha1ServerStorageVersion encodingVersion(String encodingVersion) { * @return encodingVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).") public String getEncodingVersion() { return encodingVersion; } @@ -154,6 +160,7 @@ public V1alpha1ServerStorageVersion addServedVersionsItem(String servedVersionsI * @return servedVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The API server can serve these versions. DecodableVersions must include all ServedVersions.") public List getServedVersions() { return servedVersions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java index 71a2b8b811..1fb142ef77 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * Storage version of a specific resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Storage version of a specific resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -85,6 +88,7 @@ public V1alpha1StorageVersion apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -104,6 +108,7 @@ public V1alpha1StorageVersion kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -123,6 +128,7 @@ public V1alpha1StorageVersion metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -142,6 +148,7 @@ public V1alpha1StorageVersion spec(Object spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Spec is an empty spec. It is here to comply with Kubernetes API style.") public Object getSpec() { return spec; } @@ -161,6 +168,7 @@ public V1alpha1StorageVersion status(V1alpha1StorageVersionStatus status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha1StorageVersionStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java index 0e0cd8a4dd..ad13fe5ac1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Describes the state of the storageVersion at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Describes the state of the storageVersion at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -88,6 +91,7 @@ public V1alpha1StorageVersionCondition lastTransitionTime(OffsetDateTime lastTra * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -107,6 +111,7 @@ public V1alpha1StorageVersionCondition message(String message) { * @return message **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "A human readable message indicating details about the transition.") public String getMessage() { return message; } @@ -126,6 +131,7 @@ public V1alpha1StorageVersionCondition observedGeneration(Long observedGeneratio * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If set, this represents the .metadata.generation that the condition was set based upon.") public Long getObservedGeneration() { return observedGeneration; } @@ -145,6 +151,7 @@ public V1alpha1StorageVersionCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The reason for the condition's last transition.") public String getReason() { return reason; } @@ -164,6 +171,7 @@ public V1alpha1StorageVersionCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -183,6 +191,7 @@ public V1alpha1StorageVersionCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of the condition.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java index bce5bf2e2d..14f9108249 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1StorageVersion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * A list of StorageVersions. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "A list of StorageVersions.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha1StorageVersionList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha1StorageVersionList addItemsItem(V1alpha1StorageVersion itemsItem) * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items holds a list of StorageVersion") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha1StorageVersionList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha1StorageVersionList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java index fd53e9927a..4228bebec7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigrationSpec; import io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigrationStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * StorageVersionMigration represents a migration of stored data to the latest storage version. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StorageVersionMigration represents a migration of stored data to the latest storage version.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1alpha1StorageVersionMigration apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1alpha1StorageVersionMigration kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1alpha1StorageVersionMigration metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1alpha1StorageVersionMigration spec(V1alpha1StorageVersionMigrationSpec * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1StorageVersionMigrationSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1alpha1StorageVersionMigration status(V1alpha1StorageVersionMigrationSta * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1StorageVersionMigrationStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java index b9431a80d0..df8e400149 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * StorageVersionMigrationList is a collection of storage version migrations. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "StorageVersionMigrationList is a collection of storage version migrations.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersionMigrationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha1StorageVersionMigrationList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha1StorageVersionMigrationList addItemsItem(V1alpha1StorageVersionMi * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of StorageVersionMigration") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha1StorageVersionMigrationList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha1StorageVersionMigrationList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java index d601c19b01..f2aa486dc4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1GroupVersionResource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Spec of the storage version migration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Spec of the storage version migration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersionMigrationSpec { public static final String SERIALIZED_NAME_CONTINUE_TOKEN = "continueToken"; @SerializedName(SERIALIZED_NAME_CONTINUE_TOKEN) @@ -72,6 +75,7 @@ public V1alpha1StorageVersionMigrationSpec continueToken(String continueToken) { * @return continueToken **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration.") public String getContinueToken() { return continueToken; } @@ -91,6 +95,7 @@ public V1alpha1StorageVersionMigrationSpec resource(V1alpha1GroupVersionResource * @return resource **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha1GroupVersionResource getResource() { return resource; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java index 550659ad73..5207bc7b45 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1MigrationCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * Status of the storage version migration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Status of the storage version migration.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersionMigrationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -82,6 +85,7 @@ public V1alpha1StorageVersionMigrationStatus addConditionsItem(V1alpha1Migration * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The latest available observations of the migration's current state.") public List getConditions() { return conditions; } @@ -101,6 +105,7 @@ public V1alpha1StorageVersionMigrationStatus resourceVersion(String resourceVers * @return resourceVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.") public String getResourceVersion() { return resourceVersion; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java index 2af757b00b..059b8321a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion; import io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; @SerializedName(SERIALIZED_NAME_COMMON_ENCODING_VERSION) @@ -79,6 +82,7 @@ public V1alpha1StorageVersionStatus commonEncodingVersion(String commonEncodingV * @return commonEncodingVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.") public String getCommonEncodingVersion() { return commonEncodingVersion; } @@ -106,6 +110,7 @@ public V1alpha1StorageVersionStatus addConditionsItem(V1alpha1StorageVersionCond * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The latest available observations of the storageVersion's state.") public List getConditions() { return conditions; } @@ -133,6 +138,7 @@ public V1alpha1StorageVersionStatus addStorageVersionsItem(V1alpha1ServerStorage * @return storageVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The reported versions per API server instance.") public List getStorageVersions() { return storageVersions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java index 0f73a45d19..5e124f2e4e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1ExpressionWarning; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) @@ -78,6 +81,7 @@ public V1alpha1TypeChecking addExpressionWarningsItem(V1alpha1ExpressionWarning * @return expressionWarnings **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The type checking warnings for each expression.") public List getExpressionWarnings() { return expressionWarnings; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java index a3743a85f0..ac0777ef9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicySpec; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1alpha1ValidatingAdmissionPolicy apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1alpha1ValidatingAdmissionPolicy kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1alpha1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1alpha1ValidatingAdmissionPolicy spec(V1alpha1ValidatingAdmissionPolicyS * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1ValidatingAdmissionPolicySpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1alpha1ValidatingAdmissionPolicy status(V1alpha1ValidatingAdmissionPolic * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1ValidatingAdmissionPolicyStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java index ceb19f1b5f..44b5010fec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBindingSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1alpha1ValidatingAdmissionPolicyBinding spec(V1alpha1ValidatingAdmission * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1ValidatingAdmissionPolicyBindingSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java index 86321c4258..40526495c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList addItemsItem(V1alpha1Validat * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of PolicyBinding.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java index 85b121af3d..ce4ca58654 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha1MatchResources; import io.kubernetes.client.openapi.models.V1alpha1ParamRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) @@ -83,6 +86,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec matchResources(V1alpha1Match * @return matchResources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1MatchResources getMatchResources() { return matchResources; } @@ -102,6 +106,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec paramRef(V1alpha1ParamRef pa * @return paramRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1ParamRef getParamRef() { return paramRef; } @@ -121,6 +126,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec policyName(String policyName * @return policyName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") public String getPolicyName() { return policyName; } @@ -148,6 +154,7 @@ public V1alpha1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(Str * @return validationActions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") public List getValidationActions() { return validationActions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java index 33e5f2b9f8..5f583a6e33 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha1ValidatingAdmissionPolicyList addItemsItem(V1alpha1ValidatingAdmi * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha1ValidatingAdmissionPolicyList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java index b6ae7c1409..c7fbe78fad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +24,8 @@ import io.kubernetes.client.openapi.models.V1alpha1ParamKind; import io.kubernetes.client.openapi.models.V1alpha1Validation; import io.kubernetes.client.openapi.models.V1alpha1Variable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -56,7 +58,8 @@ /** * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) @@ -107,6 +110,7 @@ public V1alpha1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1alpha1Aud * @return auditAnnotations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.") public List getAuditAnnotations() { return auditAnnotations; } @@ -126,6 +130,7 @@ public V1alpha1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) * @return failurePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -153,6 +158,7 @@ public V1alpha1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1alpha1Matc * @return matchConditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") public List getMatchConditions() { return matchConditions; } @@ -172,6 +178,7 @@ public V1alpha1ValidatingAdmissionPolicySpec matchConstraints(V1alpha1MatchResou * @return matchConstraints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1MatchResources getMatchConstraints() { return matchConstraints; } @@ -191,6 +198,7 @@ public V1alpha1ValidatingAdmissionPolicySpec paramKind(V1alpha1ParamKind paramKi * @return paramKind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1ParamKind getParamKind() { return paramKind; } @@ -218,6 +226,7 @@ public V1alpha1ValidatingAdmissionPolicySpec addValidationsItem(V1alpha1Validati * @return validations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") public List getValidations() { return validations; } @@ -245,6 +254,7 @@ public V1alpha1ValidatingAdmissionPolicySpec addVariablesItem(V1alpha1Variable v * @return variables **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") public List getVariables() { return variables; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java index 16a7cbae00..6045e8aaa2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; import io.kubernetes.client.openapi.models.V1alpha1TypeChecking; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -87,6 +90,7 @@ public V1alpha1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition con * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") public List getConditions() { return conditions; } @@ -106,6 +110,7 @@ public V1alpha1ValidatingAdmissionPolicyStatus observedGeneration(Long observedG * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The generation observed by the controller.") public Long getObservedGeneration() { return observedGeneration; } @@ -125,6 +130,7 @@ public V1alpha1ValidatingAdmissionPolicyStatus typeChecking(V1alpha1TypeChecking * @return typeChecking **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1TypeChecking getTypeChecking() { return typeChecking; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java index 7f36b24d07..e6b38c75a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Validation specifies the CEL expression which is used to apply the validation. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1Validation { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -79,6 +82,7 @@ public V1alpha1Validation expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") public String getExpression() { return expression; } @@ -98,6 +102,7 @@ public V1alpha1Validation message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") public String getMessage() { return message; } @@ -117,6 +122,7 @@ public V1alpha1Validation messageExpression(String messageExpression) { * @return messageExpression **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"") public String getMessageExpression() { return messageExpression; } @@ -136,6 +142,7 @@ public V1alpha1Validation reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") public String getReason() { return reason; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java index df8aff0db4..c220d49309 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Variable is the definition of a variable that is used for composition. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Variable is the definition of a variable that is used for composition.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,6 +74,7 @@ public V1alpha1Variable expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } @@ -90,6 +94,7 @@ public V1alpha1Variable name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java index 6faae3539d..e6bc391e32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1alpha1VolumeAttributesClass apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1alpha1VolumeAttributesClass driverName(String driverName) { * @return driverName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the CSI driver This field is immutable.") public String getDriverName() { return driverName; } @@ -124,6 +129,7 @@ public V1alpha1VolumeAttributesClass kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -143,6 +149,7 @@ public V1alpha1VolumeAttributesClass metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -170,6 +177,7 @@ public V1alpha1VolumeAttributesClass putParametersItem(String key, String parame * @return parameters **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") public Map getParameters() { return parameters; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java index 85120fce9c..5023005fc0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha1VolumeAttributesClassList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha1VolumeAttributesClassList addItemsItem(V1alpha1VolumeAttributesCl * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of VolumeAttributesClass objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha1VolumeAttributesClassList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha1VolumeAttributesClassList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java index 1add72fead..93130b664c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationResult; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * AllocationResult contains attributes of an allocated resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AllocationResult contains attributes of an allocated resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3AllocationResult { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) @@ -77,6 +80,7 @@ public V1alpha3AllocationResult controller(String controller) { * @return controller **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver. A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results. This is an alpha field and requires enabling the DRAControlPlaneController feature gate.") public String getController() { return controller; } @@ -96,6 +100,7 @@ public V1alpha3AllocationResult devices(V1alpha3DeviceAllocationResult devices) * @return devices **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3DeviceAllocationResult getDevices() { return devices; } @@ -115,6 +120,7 @@ public V1alpha3AllocationResult nodeSelector(V1NodeSelector nodeSelector) { * @return nodeSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeSelector getNodeSelector() { return nodeSelector; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java index 456f3218e7..613065227e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1alpha3DeviceAttribute; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -52,7 +54,8 @@ /** * BasicDevice defines one device instance. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "BasicDevice defines one device instance.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3BasicDevice { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @@ -83,6 +86,7 @@ public V1alpha3BasicDevice putAttributesItem(String key, V1alpha3DeviceAttribute * @return attributes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.") public Map getAttributes() { return attributes; } @@ -110,6 +114,7 @@ public V1alpha3BasicDevice putCapacityItem(String key, Quantity capacityItem) { * @return capacity **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.") public Map getCapacity() { return capacity; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java index a4769c3c8b..19c17e6282 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * CELDeviceSelector contains a CEL expression for selecting a device. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -67,6 +70,7 @@ public V1alpha3CELDeviceSelector expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)") public String getExpression() { return expression; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java index c1bba6d658..effdaa55e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3BasicDevice; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3Device { public static final String SERIALIZED_NAME_BASIC = "basic"; @SerializedName(SERIALIZED_NAME_BASIC) @@ -72,6 +75,7 @@ public V1alpha3Device basic(V1alpha3BasicDevice basic) { * @return basic **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3BasicDevice getBasic() { return basic; } @@ -91,6 +95,7 @@ public V1alpha3Device name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java index b3c8a670dd..2653b332f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3OpaqueDeviceConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -78,6 +81,7 @@ public V1alpha3DeviceAllocationConfiguration opaque(V1alpha3OpaqueDeviceConfigur * @return opaque **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3OpaqueDeviceConfiguration getOpaque() { return opaque; } @@ -105,6 +109,7 @@ public V1alpha3DeviceAllocationConfiguration addRequestsItem(String requestsItem * @return requests **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.") public List getRequests() { return requests; } @@ -124,6 +129,7 @@ public V1alpha3DeviceAllocationConfiguration source(String source) { * @return source **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.") public String getSource() { return source; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java index d50a4597c5..546271eb48 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration; import io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * DeviceAllocationResult is the result of allocating devices. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -83,6 +86,7 @@ public V1alpha3DeviceAllocationResult addConfigItem(V1alpha3DeviceAllocationConf * @return config **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.") public List getConfig() { return config; } @@ -110,6 +114,7 @@ public V1alpha3DeviceAllocationResult addResultsItem(V1alpha3DeviceRequestAlloca * @return results **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Results lists all allocated devices.") public List getResults() { return results; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java index ecdad2e85a..ebcd4e44d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * DeviceAttribute must have exactly one field set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceAttribute must have exactly one field set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @@ -79,6 +82,7 @@ public V1alpha3DeviceAttribute bool(Boolean bool) { * @return bool **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "BoolValue is a true/false value.") public Boolean getBool() { return bool; } @@ -98,6 +102,7 @@ public V1alpha3DeviceAttribute _int(Long _int) { * @return _int **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntValue is a number.") public Long getInt() { return _int; } @@ -117,6 +122,7 @@ public V1alpha3DeviceAttribute string(String string) { * @return string **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "StringValue is a string. Must not be longer than 64 characters.") public String getString() { return string; } @@ -136,6 +142,7 @@ public V1alpha3DeviceAttribute version(String version) { * @return version **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.") public String getVersion() { return version; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java index 0ecba6a8e0..6a400701d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration; import io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint; import io.kubernetes.client.openapi.models.V1alpha3DeviceRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * DeviceClaim defines how to request devices with a ResourceClaim. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -88,6 +91,7 @@ public V1alpha3DeviceClaim addConfigItem(V1alpha3DeviceClaimConfiguration config * @return config **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.") public List getConfig() { return config; } @@ -115,6 +119,7 @@ public V1alpha3DeviceClaim addConstraintsItem(V1alpha3DeviceConstraint constrain * @return constraints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "These constraints must be satisfied by the set of devices that get allocated for the claim.") public List getConstraints() { return constraints; } @@ -142,6 +147,7 @@ public V1alpha3DeviceClaim addRequestsItem(V1alpha3DeviceRequest requestsItem) { * @return requests **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.") public List getRequests() { return requests; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java index 2fc44cbb32..478d6cedf8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3OpaqueDeviceConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -74,6 +77,7 @@ public V1alpha3DeviceClaimConfiguration opaque(V1alpha3OpaqueDeviceConfiguration * @return opaque **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3OpaqueDeviceConfiguration getOpaque() { return opaque; } @@ -101,6 +105,7 @@ public V1alpha3DeviceClaimConfiguration addRequestsItem(String requestsItem) { * @return requests **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.") public List getRequests() { return requests; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java index 8b3427796d..24fee3859a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha3DeviceClassSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1alpha3DeviceClass apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1alpha3DeviceClass kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1alpha3DeviceClass metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1alpha3DeviceClass spec(V1alpha3DeviceClassSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha3DeviceClassSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java index d52c9fc876..d0df878e8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3OpaqueDeviceConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * DeviceClassConfiguration is used in DeviceClass. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -68,6 +71,7 @@ public V1alpha3DeviceClassConfiguration opaque(V1alpha3OpaqueDeviceConfiguration * @return opaque **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3OpaqueDeviceConfiguration getOpaque() { return opaque; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java index 487f72edb5..2c257b7db6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha3DeviceClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * DeviceClassList is a collection of classes. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceClassList is a collection of classes.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha3DeviceClassList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha3DeviceClassList addItemsItem(V1alpha3DeviceClass itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of resource classes.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha3DeviceClassList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha3DeviceClassList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java index 0c25a3c707..5216155a6d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration; import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -88,6 +91,7 @@ public V1alpha3DeviceClassSpec addConfigItem(V1alpha3DeviceClassConfiguration co * @return config **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.") public List getConfig() { return config; } @@ -115,6 +119,7 @@ public V1alpha3DeviceClassSpec addSelectorsItem(V1alpha3DeviceSelector selectors * @return selectors **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Each selector must be satisfied by a device which is claimed via this class.") public List getSelectors() { return selectors; } @@ -134,6 +139,7 @@ public V1alpha3DeviceClassSpec suitableNodes(V1NodeSelector suitableNodes) { * @return suitableNodes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeSelector getSuitableNodes() { return suitableNodes; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java index b78d02c20a..e48244b160 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * DeviceConstraint must have exactly one field set besides Requests. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceConstraint { public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) @@ -73,6 +76,7 @@ public V1alpha3DeviceConstraint matchAttribute(String matchAttribute) { * @return matchAttribute **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier.") public String getMatchAttribute() { return matchAttribute; } @@ -100,6 +104,7 @@ public V1alpha3DeviceConstraint addRequestsItem(String requestsItem) { * @return requests **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.") public List getRequests() { return requests; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java index e8966ff57d..bb85a804cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -90,6 +93,7 @@ public V1alpha3DeviceRequest adminAccess(Boolean adminAccess) { * @return adminAccess **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.") public Boolean getAdminAccess() { return adminAccess; } @@ -109,6 +113,7 @@ public V1alpha3DeviceRequest allocationMode(String allocationMode) { * @return allocationMode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") public String getAllocationMode() { return allocationMode; } @@ -128,6 +133,7 @@ public V1alpha3DeviceRequest count(Long count) { * @return count **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.") public Long getCount() { return count; } @@ -147,6 +153,7 @@ public V1alpha3DeviceRequest deviceClassName(String deviceClassName) { * @return deviceClassName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.") public String getDeviceClassName() { return deviceClassName; } @@ -166,6 +173,7 @@ public V1alpha3DeviceRequest name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label.") public String getName() { return name; } @@ -193,6 +201,7 @@ public V1alpha3DeviceRequest addSelectorsItem(V1alpha3DeviceSelector selectorsIt * @return selectors **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.") public List getSelectors() { return selectors; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java index 6937534b38..e4f9b13164 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * DeviceRequestAllocationResult contains the allocation result for one request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) @@ -79,6 +82,7 @@ public V1alpha3DeviceRequestAllocationResult device(String device) { * @return device **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.") public String getDevice() { return device; } @@ -98,6 +102,7 @@ public V1alpha3DeviceRequestAllocationResult driver(String driver) { * @return driver **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.") public String getDriver() { return driver; } @@ -117,6 +122,7 @@ public V1alpha3DeviceRequestAllocationResult pool(String pool) { * @return pool **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") public String getPool() { return pool; } @@ -136,6 +142,7 @@ public V1alpha3DeviceRequestAllocationResult request(String request) { * @return request **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.") public String getRequest() { return request; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java index c743bd0d6e..90d30dc45f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3CELDeviceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * DeviceSelector must have exactly one field set. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "DeviceSelector must have exactly one field set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) @@ -68,6 +71,7 @@ public V1alpha3DeviceSelector cel(V1alpha3CELDeviceSelector cel) { * @return cel **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3CELDeviceSelector getCel() { return cel; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java index 57b893b1fd..9fa2e27717 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -71,6 +74,7 @@ public V1alpha3OpaqueDeviceConfiguration driver(String driver) { * @return driver **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Driver is used to determine which kubelet plugin needs to be passed these configuration parameters. An admission policy provided by the driver developer could use this to decide whether it needs to validate them. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.") public String getDriver() { return driver; } @@ -90,6 +94,7 @@ public V1alpha3OpaqueDeviceConfiguration parameters(Object parameters) { * @return parameters **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions.") public Object getParameters() { return parameters; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContext.java index 8716b67e84..b1965f30a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContext.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha3PodSchedulingContextSpec; import io.kubernetes.client.openapi.models.V1alpha3PodSchedulingContextStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode. This is an alpha type and requires enabling the DRAControlPlaneController feature gate. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode. This is an alpha type and requires enabling the DRAControlPlaneController feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3PodSchedulingContext implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1alpha3PodSchedulingContext apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1alpha3PodSchedulingContext kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1alpha3PodSchedulingContext metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1alpha3PodSchedulingContext spec(V1alpha3PodSchedulingContextSpec spec) * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha3PodSchedulingContextSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1alpha3PodSchedulingContext status(V1alpha3PodSchedulingContextStatus st * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3PodSchedulingContextStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextList.java index bc21298125..f16a4fc15f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha3PodSchedulingContext; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PodSchedulingContextList is a collection of Pod scheduling objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodSchedulingContextList is a collection of Pod scheduling objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3PodSchedulingContextList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha3PodSchedulingContextList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha3PodSchedulingContextList addItemsItem(V1alpha3PodSchedulingContex * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of PodSchedulingContext objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha3PodSchedulingContextList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha3PodSchedulingContextList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextSpec.java index 55403282b8..03cbb60c74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PodSchedulingContextSpec describes where resources for the Pod are needed. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodSchedulingContextSpec describes where resources for the Pod are needed.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3PodSchedulingContextSpec { public static final String SERIALIZED_NAME_POTENTIAL_NODES = "potentialNodes"; @SerializedName(SERIALIZED_NAME_POTENTIAL_NODES) @@ -81,6 +84,7 @@ public V1alpha3PodSchedulingContextSpec addPotentialNodesItem(String potentialNo * @return potentialNodes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PotentialNodes lists nodes where the Pod might be able to run. The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.") public List getPotentialNodes() { return potentialNodes; } @@ -100,6 +104,7 @@ public V1alpha3PodSchedulingContextSpec selectedNode(String selectedNode) { * @return selectedNode **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.") public String getSelectedNode() { return selectedNode; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextStatus.java index 453e7a56ad..68d1c5f5a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PodSchedulingContextStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimSchedulingStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PodSchedulingContextStatus describes where resources for the Pod can be allocated. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodSchedulingContextStatus describes where resources for the Pod can be allocated.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3PodSchedulingContextStatus { public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) @@ -78,6 +81,7 @@ public V1alpha3PodSchedulingContextStatus addResourceClaimsItem(V1alpha3Resource * @return resourceClaims **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.") public List getResourceClaims() { return resourceClaims; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java index fa2697142a..6ce4cdd753 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimSpec; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1alpha3ResourceClaim apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1alpha3ResourceClaim kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1alpha3ResourceClaim metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1alpha3ResourceClaim spec(V1alpha3ResourceClaimSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha3ResourceClaimSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1alpha3ResourceClaim status(V1alpha3ResourceClaimStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3ResourceClaimStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java index d28df9449f..f00ade9ac7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -79,6 +82,7 @@ public V1alpha3ResourceClaimConsumerReference apiGroup(String apiGroup) { * @return apiGroup **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.") public String getApiGroup() { return apiGroup; } @@ -98,6 +102,7 @@ public V1alpha3ResourceClaimConsumerReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of resource being referenced.") public String getName() { return name; } @@ -117,6 +122,7 @@ public V1alpha3ResourceClaimConsumerReference resource(String resource) { * @return resource **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Resource is the type of resource being referenced, for example \"pods\".") public String getResource() { return resource; } @@ -136,6 +142,7 @@ public V1alpha3ResourceClaimConsumerReference uid(String uid) { * @return uid **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "UID identifies exactly one incarnation of the resource.") public String getUid() { return uid; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java index 446d474743..39cc18938a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaim; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ResourceClaimList is a collection of claims. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimList is a collection of claims.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha3ResourceClaimList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha3ResourceClaimList addItemsItem(V1alpha3ResourceClaim itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of resource claims.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha3ResourceClaimList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha3ResourceClaimList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSchedulingStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSchedulingStatus.java index a20203737e..f31a2c27f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSchedulingStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSchedulingStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimSchedulingStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -73,6 +76,7 @@ public V1alpha3ResourceClaimSchedulingStatus name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name matches the pod.spec.resourceClaims[*].Name field.") public String getName() { return name; } @@ -100,6 +104,7 @@ public V1alpha3ResourceClaimSchedulingStatus addUnsuitableNodesItem(String unsui * @return unsuitableNodes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for. The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.") public List getUnsuitableNodes() { return unsuitableNodes; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java index 893cc6081e..864a0e98de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3DeviceClaim; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) @@ -72,6 +75,7 @@ public V1alpha3ResourceClaimSpec controller(String controller) { * @return controller **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This is an alpha field and requires enabling the DRAControlPlaneController feature gate.") public String getController() { return controller; } @@ -91,6 +95,7 @@ public V1alpha3ResourceClaimSpec devices(V1alpha3DeviceClaim devices) { * @return devices **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3DeviceClaim getDevices() { return devices; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java index 988914bddc..6f0bc0b254 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1alpha3AllocationResult; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) @@ -79,6 +82,7 @@ public V1alpha3ResourceClaimStatus allocation(V1alpha3AllocationResult allocatio * @return allocation **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha3AllocationResult getAllocation() { return allocation; } @@ -98,6 +102,7 @@ public V1alpha3ResourceClaimStatus deallocationRequested(Boolean deallocationReq * @return deallocationRequested **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor. This is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field. This is an alpha field and requires enabling the DRAControlPlaneController feature gate.") public Boolean getDeallocationRequested() { return deallocationRequested; } @@ -125,6 +130,7 @@ public V1alpha3ResourceClaimStatus addReservedForItem(V1alpha3ResourceClaimConsu * @return reservedFor **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 32 such reservations. This may get increased in the future, but not reduced.") public List getReservedFor() { return reservedFor; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java index d19afe76d9..c0a1c42b53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1alpha3ResourceClaimTemplate apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1alpha3ResourceClaimTemplate kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1alpha3ResourceClaimTemplate metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1alpha3ResourceClaimTemplate spec(V1alpha3ResourceClaimTemplateSpec spec * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha3ResourceClaimTemplateSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java index a3f9745eb0..17182bc7f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ResourceClaimTemplateList is a collection of claim templates. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha3ResourceClaimTemplateList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha3ResourceClaimTemplateList addItemsItem(V1alpha3ResourceClaimTempl * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of resource claim templates.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha3ResourceClaimTemplateList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha3ResourceClaimTemplateList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java index 1afe0dabb6..e15d02aa12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -73,6 +76,7 @@ public V1alpha3ResourceClaimTemplateSpec metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -92,6 +96,7 @@ public V1alpha3ResourceClaimTemplateSpec spec(V1alpha3ResourceClaimSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha3ResourceClaimSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java index e73d91bb2f..5f3b1b5c2e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ResourcePool describes the pool that ResourceSlices belong to. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @@ -75,6 +78,7 @@ public V1alpha3ResourcePool generation(Long generation) { * @return generation **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.") public Long getGeneration() { return generation; } @@ -94,6 +98,7 @@ public V1alpha3ResourcePool name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.") public String getName() { return name; } @@ -113,6 +118,7 @@ public V1alpha3ResourcePool resourceSliceCount(Long resourceSliceCount) { * @return resourceSliceCount **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.") public Long getResourceSliceCount() { return resourceSliceCount; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java index 498deabe9a..48e9601568 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1alpha3ResourceSliceSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1alpha3ResourceSlice apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1alpha3ResourceSlice kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1alpha3ResourceSlice metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1alpha3ResourceSlice spec(V1alpha3ResourceSliceSpec spec) { * @return spec **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha3ResourceSliceSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java index a1828a2f8b..4df3131593 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1alpha3ResourceSlice; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ResourceSliceList is a collection of ResourceSlices. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1alpha3ResourceSliceList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1alpha3ResourceSliceList addItemsItem(V1alpha3ResourceSlice itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of resource ResourceSlices.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1alpha3ResourceSliceList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1alpha3ResourceSliceList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.java index b244be0522..d013f4be9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1NodeSelector; import io.kubernetes.client.openapi.models.V1alpha3Device; import io.kubernetes.client.openapi.models.V1alpha3ResourcePool; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1alpha3ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -92,6 +95,7 @@ public V1alpha3ResourceSliceSpec allNodes(Boolean allNodes) { * @return allNodes **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector and AllNodes must be set.") public Boolean getAllNodes() { return allNodes; } @@ -119,6 +123,7 @@ public V1alpha3ResourceSliceSpec addDevicesItem(V1alpha3Device devicesItem) { * @return devices **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Devices lists some or all of the devices in this pool. Must not have more than 128 entries.") public List getDevices() { return devices; } @@ -138,6 +143,7 @@ public V1alpha3ResourceSliceSpec driver(String driver) { * @return driver **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.") public String getDriver() { return driver; } @@ -157,6 +163,7 @@ public V1alpha3ResourceSliceSpec nodeName(String nodeName) { * @return nodeName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.") public String getNodeName() { return nodeName; } @@ -176,6 +183,7 @@ public V1alpha3ResourceSliceSpec nodeSelector(V1NodeSelector nodeSelector) { * @return nodeSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1NodeSelector getNodeSelector() { return nodeSelector; } @@ -195,6 +203,7 @@ public V1alpha3ResourceSliceSpec pool(V1alpha3ResourcePool pool) { * @return pool **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha3ResourcePool getPool() { return pool; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java index d1c470c03e..de3808443f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * AuditAnnotation describes how to produce an audit annotation for an API request. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1AuditAnnotation { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,6 +74,7 @@ public V1beta1AuditAnnotation key(String key) { * @return key **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required.") public String getKey() { return key; } @@ -90,6 +94,7 @@ public V1beta1AuditAnnotation valueExpression(String valueExpression) { * @return valueExpression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required.") public String getValueExpression() { return valueExpression; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java index 3fbea995d0..640118d445 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ExpressionWarning is a warning information that targets a specific expression. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -71,6 +74,7 @@ public V1beta1ExpressionWarning fieldRef(String fieldRef) { * @return fieldRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") public String getFieldRef() { return fieldRef; } @@ -90,6 +94,7 @@ public V1beta1ExpressionWarning warning(String warning) { * @return warning **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") public String getWarning() { return warning; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java index 08a9b5e589..f8f6046689 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta1IPAddressSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1IPAddress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1beta1IPAddress apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1beta1IPAddress kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1beta1IPAddress metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1beta1IPAddress spec(V1beta1IPAddressSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1IPAddressSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java index 718cd47f19..13a0e24d70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta1IPAddress; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * IPAddressList contains a list of IPAddress. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IPAddressList contains a list of IPAddress.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1beta1IPAddressList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1beta1IPAddressList addItemsItem(V1beta1IPAddress itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of IPAddresses.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1beta1IPAddressList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1beta1IPAddressList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java index 2bae6c495a..aa20682514 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta1ParentReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * IPAddressSpec describe the attributes in an IP Address. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1IPAddressSpec { public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; @SerializedName(SERIALIZED_NAME_PARENT_REF) @@ -68,6 +71,7 @@ public V1beta1IPAddressSpec parentRef(V1beta1ParentReference parentRef) { * @return parentRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1beta1ParentReference getParentRef() { return parentRef; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java index d12733f3b4..1821845db8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,6 +74,7 @@ public V1beta1MatchCondition expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } @@ -90,6 +94,7 @@ public V1beta1MatchCondition name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java index e9688da413..e1dcbd7096 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; import io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -95,6 +98,7 @@ public V1beta1MatchResources addExcludeResourceRulesItem(V1beta1NamedRuleWithOpe * @return excludeResourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } @@ -114,6 +118,7 @@ public V1beta1MatchResources matchPolicy(String matchPolicy) { * @return matchPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\"") public String getMatchPolicy() { return matchPolicy; } @@ -133,6 +138,7 @@ public V1beta1MatchResources namespaceSelector(V1LabelSelector namespaceSelector * @return namespaceSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } @@ -152,6 +158,7 @@ public V1beta1MatchResources objectSelector(V1LabelSelector objectSelector) { * @return objectSelector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getObjectSelector() { return objectSelector; } @@ -179,6 +186,7 @@ public V1beta1MatchResources addResourceRulesItem(V1beta1NamedRuleWithOperations * @return resourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java index e72eb915c0..8c6092fcf4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -97,6 +100,7 @@ public V1beta1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -124,6 +128,7 @@ public V1beta1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem) * @return apiVersions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -151,6 +156,7 @@ public V1beta1NamedRuleWithOperations addOperationsItem(String operationsItem) { * @return operations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -178,6 +184,7 @@ public V1beta1NamedRuleWithOperations addResourceNamesItem(String resourceNamesI * @return resourceNames **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } @@ -205,6 +212,7 @@ public V1beta1NamedRuleWithOperations addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } @@ -224,6 +232,7 @@ public V1beta1NamedRuleWithOperations scope(String scope) { * @return scope **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") public String getScope() { return scope; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java index f2b6c92d61..812a4a527b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ParamKind is a tuple of Group Kind and Version. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,6 +74,7 @@ public V1beta1ParamKind apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } @@ -90,6 +94,7 @@ public V1beta1ParamKind kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java index 1b186d35b9..1d1d3c781e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -80,6 +83,7 @@ public V1beta1ParamRef name(String name) { * @return name **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.") public String getName() { return name; } @@ -99,6 +103,7 @@ public V1beta1ParamRef namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.") public String getNamespace() { return namespace; } @@ -118,6 +123,7 @@ public V1beta1ParamRef parameterNotFoundAction(String parameterNotFoundAction) { * @return parameterNotFoundAction **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required") public String getParameterNotFoundAction() { return parameterNotFoundAction; } @@ -137,6 +143,7 @@ public V1beta1ParamRef selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java index 005b5cf3b6..f8ddb312db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ParentReference describes a reference to a parent object. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ParentReference describes a reference to a parent object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -79,6 +82,7 @@ public V1beta1ParentReference group(String group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Group is the group of the object being referenced.") public String getGroup() { return group; } @@ -98,6 +102,7 @@ public V1beta1ParentReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the object being referenced.") public String getName() { return name; } @@ -117,6 +122,7 @@ public V1beta1ParentReference namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Namespace is the namespace of the object being referenced.") public String getNamespace() { return namespace; } @@ -136,6 +142,7 @@ public V1beta1ParentReference resource(String resource) { * @return resource **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Resource is the resource of the object being referenced.") public String getResource() { return resource; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java index 6393f416e7..8abd131756 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta1SelfSubjectReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1beta1SelfSubjectReview apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1beta1SelfSubjectReview kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1beta1SelfSubjectReview metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1beta1SelfSubjectReview status(V1beta1SelfSubjectReviewStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1SelfSubjectReviewStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java index 02f5e67362..ae3a108d62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1UserInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) @@ -68,6 +71,7 @@ public V1beta1SelfSubjectReviewStatus userInfo(V1UserInfo userInfo) { * @return userInfo **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1UserInfo getUserInfo() { return userInfo; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java index 111728a4e7..90d9821209 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta1ServiceCIDRSpec; import io.kubernetes.client.openapi.models.V1beta1ServiceCIDRStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1beta1ServiceCIDR apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1beta1ServiceCIDR kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1beta1ServiceCIDR metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1beta1ServiceCIDR spec(V1beta1ServiceCIDRSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ServiceCIDRSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1beta1ServiceCIDR status(V1beta1ServiceCIDRStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ServiceCIDRStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java index a707ea24d5..8168b61e48 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta1ServiceCIDR; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ServiceCIDRList contains a list of ServiceCIDR objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1beta1ServiceCIDRList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1beta1ServiceCIDRList addItemsItem(V1beta1ServiceCIDR itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of ServiceCIDRs.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1beta1ServiceCIDRList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1beta1ServiceCIDRList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java index 6fb6a4270e..d325993753 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_CIDRS) @@ -77,6 +80,7 @@ public V1beta1ServiceCIDRSpec addCidrsItem(String cidrsItem) { * @return cidrs **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.") public List getCidrs() { return cidrs; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java index 4382cafa1d..59f81b1076 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ServiceCIDRStatus describes the current state of the ServiceCIDR. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ServiceCIDRStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -78,6 +81,7 @@ public V1beta1ServiceCIDRStatus addConditionsItem(V1Condition conditionsItem) { * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state") public List getConditions() { return conditions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java index 96e2090260..9038c96430 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta1ExpressionWarning; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) @@ -78,6 +81,7 @@ public V1beta1TypeChecking addExpressionWarningsItem(V1beta1ExpressionWarning ex * @return expressionWarnings **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The type checking warnings for each expression.") public List getExpressionWarnings() { return expressionWarnings; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java index 2ae0950096..75f26ca0d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicySpec; import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1beta1ValidatingAdmissionPolicy apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1beta1ValidatingAdmissionPolicy kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1beta1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1beta1ValidatingAdmissionPolicy spec(V1beta1ValidatingAdmissionPolicySpe * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ValidatingAdmissionPolicySpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1beta1ValidatingAdmissionPolicy status(V1beta1ValidatingAdmissionPolicyS * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ValidatingAdmissionPolicyStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java index 7c1c1f8f2b..2dbfc97909 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBindingSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,6 +84,7 @@ public V1beta1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -100,6 +104,7 @@ public V1beta1ValidatingAdmissionPolicyBinding kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -119,6 +124,7 @@ public V1beta1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -138,6 +144,7 @@ public V1beta1ValidatingAdmissionPolicyBinding spec(V1beta1ValidatingAdmissionPo * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ValidatingAdmissionPolicyBindingSpec getSpec() { return spec; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java index dbc85d64d7..2a4dde2a02 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1beta1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion) * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1beta1ValidatingAdmissionPolicyBindingList addItemsItem(V1beta1Validatin * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of PolicyBinding.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1beta1ValidatingAdmissionPolicyBindingList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1beta1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java index 1724236ba0..cd126d6a07 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta1MatchResources; import io.kubernetes.client.openapi.models.V1beta1ParamRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) @@ -83,6 +86,7 @@ public V1beta1ValidatingAdmissionPolicyBindingSpec matchResources(V1beta1MatchRe * @return matchResources **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1MatchResources getMatchResources() { return matchResources; } @@ -102,6 +106,7 @@ public V1beta1ValidatingAdmissionPolicyBindingSpec paramRef(V1beta1ParamRef para * @return paramRef **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ParamRef getParamRef() { return paramRef; } @@ -121,6 +126,7 @@ public V1beta1ValidatingAdmissionPolicyBindingSpec policyName(String policyName) * @return policyName **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") public String getPolicyName() { return policyName; } @@ -148,6 +154,7 @@ public V1beta1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(Stri * @return validationActions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") public List getValidationActions() { return validationActions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java index 914b45d96d..9ee49a9a1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1beta1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1beta1ValidatingAdmissionPolicyList addItemsItem(V1beta1ValidatingAdmiss * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1beta1ValidatingAdmissionPolicyList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1beta1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java index 9822314327..73eadf1c21 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +24,8 @@ import io.kubernetes.client.openapi.models.V1beta1ParamKind; import io.kubernetes.client.openapi.models.V1beta1Validation; import io.kubernetes.client.openapi.models.V1beta1Variable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -56,7 +58,8 @@ /** * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) @@ -107,6 +110,7 @@ public V1beta1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1beta1Audit * @return auditAnnotations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.") public List getAuditAnnotations() { return auditAnnotations; } @@ -126,6 +130,7 @@ public V1beta1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) * @return failurePolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -153,6 +158,7 @@ public V1beta1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1beta1MatchC * @return matchConditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") public List getMatchConditions() { return matchConditions; } @@ -172,6 +178,7 @@ public V1beta1ValidatingAdmissionPolicySpec matchConstraints(V1beta1MatchResourc * @return matchConstraints **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1MatchResources getMatchConstraints() { return matchConstraints; } @@ -191,6 +198,7 @@ public V1beta1ValidatingAdmissionPolicySpec paramKind(V1beta1ParamKind paramKind * @return paramKind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1ParamKind getParamKind() { return paramKind; } @@ -218,6 +226,7 @@ public V1beta1ValidatingAdmissionPolicySpec addValidationsItem(V1beta1Validation * @return validations **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") public List getValidations() { return validations; } @@ -245,6 +254,7 @@ public V1beta1ValidatingAdmissionPolicySpec addVariablesItem(V1beta1Variable var * @return variables **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") public List getVariables() { return variables; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java index 2df2b0d26f..8c04e02540 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1Condition; import io.kubernetes.client.openapi.models.V1beta1TypeChecking; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -87,6 +90,7 @@ public V1beta1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition cond * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") public List getConditions() { return conditions; } @@ -106,6 +110,7 @@ public V1beta1ValidatingAdmissionPolicyStatus observedGeneration(Long observedGe * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "The generation observed by the controller.") public Long getObservedGeneration() { return observedGeneration; } @@ -125,6 +130,7 @@ public V1beta1ValidatingAdmissionPolicyStatus typeChecking(V1beta1TypeChecking t * @return typeChecking **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta1TypeChecking getTypeChecking() { return typeChecking; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java index c79afa1dc8..d9eed9743f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Validation specifies the CEL expression which is used to apply the validation. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1Validation { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -79,6 +82,7 @@ public V1beta1Validation expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") public String getExpression() { return expression; } @@ -98,6 +102,7 @@ public V1beta1Validation message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") public String getMessage() { return message; } @@ -117,6 +122,7 @@ public V1beta1Validation messageExpression(String messageExpression) { * @return messageExpression **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"") public String getMessageExpression() { return messageExpression; } @@ -136,6 +142,7 @@ public V1beta1Validation reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") public String getReason() { return reason; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java index 03076c0928..a1199770d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,6 +74,7 @@ public V1beta1Variable expression(String expression) { * @return expression **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } @@ -90,6 +94,7 @@ public V1beta1Variable name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java index 5558557e46..8a16a41066 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -51,7 +53,8 @@ /** * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1beta1VolumeAttributesClass apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1beta1VolumeAttributesClass driverName(String driverName) { * @return driverName **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name of the CSI driver This field is immutable.") public String getDriverName() { return driverName; } @@ -124,6 +129,7 @@ public V1beta1VolumeAttributesClass kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -143,6 +149,7 @@ public V1beta1VolumeAttributesClass metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -170,6 +177,7 @@ public V1beta1VolumeAttributesClass putParametersItem(String key, String paramet * @return parameters **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") public Map getParameters() { return parameters; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java index fe5af6dcc1..9221149c80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1beta1VolumeAttributesClassList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1beta1VolumeAttributesClassList addItemsItem(V1beta1VolumeAttributesClas * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of VolumeAttributesClass objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1beta1VolumeAttributesClassList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1beta1VolumeAttributesClassList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfiguration.java index 01952b1063..f912b4937c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3ExemptPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) @@ -71,6 +74,7 @@ public V1beta3ExemptPriorityLevelConfiguration lendablePercent(Integer lendableP * @return lendablePercent **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )") public Integer getLendablePercent() { return lendablePercent; } @@ -90,6 +94,7 @@ public V1beta3ExemptPriorityLevelConfiguration nominalConcurrencyShares(Integer * @return nominalConcurrencyShares **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.") public Integer getNominalConcurrencyShares() { return nominalConcurrencyShares; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java index 732fa9f41a..4292240e34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -67,6 +70,7 @@ public V1beta3FlowDistinguisherMethod type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java index d76f69204a..bca9281b60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta3FlowSchemaSpec; import io.kubernetes.client.openapi.models.V1beta3FlowSchemaStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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\". */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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\".") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1beta3FlowSchema apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1beta3FlowSchema kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1beta3FlowSchema metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1beta3FlowSchema spec(V1beta3FlowSchemaSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3FlowSchemaSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1beta3FlowSchema status(V1beta3FlowSchemaStatus status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3FlowSchemaStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java index 81d2e70f0b..17765867c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * FlowSchemaCondition describes conditions for a FlowSchema. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1beta3FlowSchemaCondition lastTransitionTime(OffsetDateTime lastTransiti * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1beta3FlowSchemaCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1beta3FlowSchemaCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1beta3FlowSchemaCondition status(String status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1beta3FlowSchemaCondition type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`type` is the type of the condition. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java index 55d45613d2..35dd8da119 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta3FlowSchema; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * FlowSchemaList is a list of FlowSchema objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1beta3FlowSchemaList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1beta3FlowSchemaList addItemsItem(V1beta3FlowSchema itemsItem) { * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`items` is a list of FlowSchemas.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1beta3FlowSchemaList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1beta3FlowSchemaList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java index 80750a4d50..09f2acaf48 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1beta3FlowDistinguisherMethod; import io.kubernetes.client.openapi.models.V1beta3PolicyRulesWithSubjects; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) @@ -84,6 +87,7 @@ public V1beta3FlowSchemaSpec distinguisherMethod(V1beta3FlowDistinguisherMethod * @return distinguisherMethod **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3FlowDistinguisherMethod getDistinguisherMethod() { return distinguisherMethod; } @@ -103,6 +107,7 @@ public V1beta3FlowSchemaSpec matchingPrecedence(Integer matchingPrecedence) { * @return matchingPrecedence **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.") public Integer getMatchingPrecedence() { return matchingPrecedence; } @@ -122,6 +127,7 @@ public V1beta3FlowSchemaSpec priorityLevelConfiguration(V1beta3PriorityLevelConf * @return priorityLevelConfiguration **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1beta3PriorityLevelConfigurationReference getPriorityLevelConfiguration() { return priorityLevelConfiguration; } @@ -149,6 +155,7 @@ public V1beta3FlowSchemaSpec addRulesItem(V1beta3PolicyRulesWithSubjects rulesIt * @return rules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.") public List getRules() { return rules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java index baca659adf..948b36a51a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3FlowSchemaCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * FlowSchemaStatus represents the current state of a FlowSchema. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -78,6 +81,7 @@ public V1beta3FlowSchemaStatus addConditionsItem(V1beta3FlowSchemaCondition cond * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`conditions` is a list of the current states of FlowSchema.") public List getConditions() { return conditions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java index 9c9e99b9d1..ebd04c2b77 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * GroupSubject holds detailed information for group-kind subject. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1beta3GroupSubject name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java index 59b2d19f65..763d6063e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3QueuingConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * LimitResponse defines how to handle requests that can not be executed right now. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "LimitResponse defines how to handle requests that can not be executed right now.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; @SerializedName(SERIALIZED_NAME_QUEUING) @@ -72,6 +75,7 @@ public V1beta3LimitResponse queuing(V1beta3QueuingConfiguration queuing) { * @return queuing **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3QueuingConfiguration getQueuing() { return queuing; } @@ -91,6 +95,7 @@ public V1beta3LimitResponse type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java index 3ca36179bb..1e64cb0180 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3LimitResponse; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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? */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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?") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) @@ -80,6 +83,7 @@ public V1beta3LimitedPriorityLevelConfiguration borrowingLimitPercent(Integer bo * @return borrowingLimitPercent **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.") public Integer getBorrowingLimitPercent() { return borrowingLimitPercent; } @@ -99,6 +103,7 @@ public V1beta3LimitedPriorityLevelConfiguration lendablePercent(Integer lendable * @return lendablePercent **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )") public Integer getLendablePercent() { return lendablePercent; } @@ -118,6 +123,7 @@ public V1beta3LimitedPriorityLevelConfiguration limitResponse(V1beta3LimitRespon * @return limitResponse **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3LimitResponse getLimitResponse() { return limitResponse; } @@ -137,6 +143,7 @@ public V1beta3LimitedPriorityLevelConfiguration nominalConcurrencyShares(Integer * @return nominalConcurrencyShares **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.") public Integer getNominalConcurrencyShares() { return nominalConcurrencyShares; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java index 854004c5d9..41730958a9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) @@ -81,6 +84,7 @@ public V1beta3NonResourcePolicyRule addNonResourceURLsItem(String nonResourceURL * @return nonResourceURLs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/_*\" also matches nothing - \"/healthz/_*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.") public List getNonResourceURLs() { return nonResourceURLs; } @@ -108,6 +112,7 @@ public V1beta3NonResourcePolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.") public List getVerbs() { return verbs; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java index 86987328a3..d9026312a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1beta3NonResourcePolicyRule; import io.kubernetes.client.openapi.models.V1beta3ResourcePolicyRule; import io.kubernetes.client.openapi.models.V1beta3Subject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) @@ -88,6 +91,7 @@ public V1beta3PolicyRulesWithSubjects addNonResourceRulesItem(V1beta3NonResource * @return nonResourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.") public List getNonResourceRules() { return nonResourceRules; } @@ -115,6 +119,7 @@ public V1beta3PolicyRulesWithSubjects addResourceRulesItem(V1beta3ResourcePolicy * @return resourceRules **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.") public List getResourceRules() { return resourceRules; } @@ -142,6 +147,7 @@ public V1beta3PolicyRulesWithSubjects addSubjectsItem(V1beta3Subject subjectsIte * @return subjects **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.") public List getSubjects() { return subjects; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java index 43c4ac3ff2..0ec3e38651 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationSpec; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PriorityLevelConfiguration represents the configuration of a priority level. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfiguration represents the configuration of a priority level.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V1beta3PriorityLevelConfiguration apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V1beta3PriorityLevelConfiguration kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V1beta3PriorityLevelConfiguration metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V1beta3PriorityLevelConfiguration spec(V1beta3PriorityLevelConfigurationS * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3PriorityLevelConfigurationSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V1beta3PriorityLevelConfiguration status(V1beta3PriorityLevelConfiguratio * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3PriorityLevelConfigurationStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java index 8d6e8dd2b8..8ee90b1b87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * PriorityLevelConfigurationCondition defines the condition of priority level. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationCondition defines the condition of priority level.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V1beta3PriorityLevelConfigurationCondition lastTransitionTime(OffsetDateT * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`lastTransitionTime` is the last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V1beta3PriorityLevelConfigurationCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`message` is a human-readable message indicating details about last transition.") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V1beta3PriorityLevelConfigurationCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V1beta3PriorityLevelConfigurationCondition status(String status) { * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`status` is the status of the condition. Can be True, False, Unknown. Required.") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V1beta3PriorityLevelConfigurationCondition type(String type) { * @return type **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`type` is the type of the condition. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java index c2062f3411..51f66dcb44 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V1beta3PriorityLevelConfigurationList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V1beta3PriorityLevelConfigurationList addItemsItem(V1beta3PriorityLevelCo * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`items` is a list of request-priorities.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V1beta3PriorityLevelConfigurationList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V1beta3PriorityLevelConfigurationList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java index c408de23c8..ba0d542f67 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1beta3PriorityLevelConfigurationReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`name` is the name of the priority level configuration being referenced Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java index 6435e30e9e..d8ee38612e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3ExemptPriorityLevelConfiguration; import io.kubernetes.client.openapi.models.V1beta3LimitedPriorityLevelConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_EXEMPT = "exempt"; @SerializedName(SERIALIZED_NAME_EXEMPT) @@ -77,6 +80,7 @@ public V1beta3PriorityLevelConfigurationSpec exempt(V1beta3ExemptPriorityLevelCo * @return exempt **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3ExemptPriorityLevelConfiguration getExempt() { return exempt; } @@ -96,6 +100,7 @@ public V1beta3PriorityLevelConfigurationSpec limited(V1beta3LimitedPriorityLevel * @return limited **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3LimitedPriorityLevelConfiguration getLimited() { return limited; } @@ -115,6 +120,7 @@ public V1beta3PriorityLevelConfigurationSpec type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java index 7f5cb602da..d1927e1867 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -78,6 +81,7 @@ public V1beta3PriorityLevelConfigurationStatus addConditionsItem(V1beta3Priority * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`conditions` is the current state of \"request-priority\".") public List getConditions() { return conditions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java index d02c2ca45a..456b38cfd5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * QueuingConfiguration holds the configuration parameters for queuing */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; @SerializedName(SERIALIZED_NAME_HAND_SIZE) @@ -75,6 +78,7 @@ public V1beta3QueuingConfiguration handSize(Integer handSize) { * @return handSize **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.") public Integer getHandSize() { return handSize; } @@ -94,6 +98,7 @@ public V1beta3QueuingConfiguration queueLengthLimit(Integer queueLengthLimit) { * @return queueLengthLimit **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.") public Integer getQueueLengthLimit() { return queueLengthLimit; } @@ -113,6 +118,7 @@ public V1beta3QueuingConfiguration queues(Integer queues) { * @return queues **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.") public Integer getQueues() { return queues; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java index 2b74e3ca0d..530681e470 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -93,6 +96,7 @@ public V1beta3ResourcePolicyRule addApiGroupsItem(String apiGroupsItem) { * @return apiGroups **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.") public List getApiGroups() { return apiGroups; } @@ -112,6 +116,7 @@ public V1beta3ResourcePolicyRule clusterScope(Boolean clusterScope) { * @return clusterScope **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.") public Boolean getClusterScope() { return clusterScope; } @@ -139,6 +144,7 @@ public V1beta3ResourcePolicyRule addNamespacesItem(String namespacesItem) { * @return namespaces **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.") public List getNamespaces() { return namespaces; } @@ -166,6 +172,7 @@ public V1beta3ResourcePolicyRule addResourcesItem(String resourcesItem) { * @return resources **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.") public List getResources() { return resources; } @@ -193,6 +200,7 @@ public V1beta3ResourcePolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.") public List getVerbs() { return verbs; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java index eb01548432..8795a0d791 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * ServiceAccountSubject holds detailed information for service-account-kind subject. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ServiceAccountSubject holds detailed information for service-account-kind subject.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,6 +74,7 @@ public V1beta3ServiceAccountSubject name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.") public String getName() { return name; } @@ -90,6 +94,7 @@ public V1beta3ServiceAccountSubject namespace(String namespace) { * @return namespace **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`namespace` is the namespace of matching ServiceAccount objects. Required.") public String getNamespace() { return namespace; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java index 05a4d30a8b..160261d566 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1beta3GroupSubject; import io.kubernetes.client.openapi.models.V1beta3ServiceAccountSubject; import io.kubernetes.client.openapi.models.V1beta3UserSubject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3Subject { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -82,6 +85,7 @@ public V1beta3Subject group(V1beta3GroupSubject group) { * @return group **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3GroupSubject getGroup() { return group; } @@ -101,6 +105,7 @@ public V1beta3Subject kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`kind` indicates which one of the other fields is non-empty. Required") public String getKind() { return kind; } @@ -120,6 +125,7 @@ public V1beta3Subject serviceAccount(V1beta3ServiceAccountSubject serviceAccount * @return serviceAccount **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3ServiceAccountSubject getServiceAccount() { return serviceAccount; } @@ -139,6 +145,7 @@ public V1beta3Subject user(V1beta3UserSubject user) { * @return user **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1beta3UserSubject getUser() { return user; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java index 28129620bb..09b16799c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * UserSubject holds detailed information for user-kind subject. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "UserSubject holds detailed information for user-kind subject.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V1beta3UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,6 +70,7 @@ public V1beta3UserSubject name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "`name` is the username that matches, or \"*\" to match all usernames. Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java index 40fe594316..81156ccf34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ContainerResourceMetricSource 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerResourceMetricSource 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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) @@ -76,6 +79,7 @@ public V2ContainerResourceMetricSource container(String container) { * @return container **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "container is the name of the container in the pods of the scaling target") public String getContainer() { return container; } @@ -95,6 +99,7 @@ public V2ContainerResourceMetricSource name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the resource in question.") public String getName() { return name; } @@ -114,6 +119,7 @@ public V2ContainerResourceMetricSource target(V2MetricTarget target) { * @return target **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricTarget getTarget() { return target; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java index 5cdc0c5654..0d53792e43 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in 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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) @@ -76,6 +79,7 @@ public V2ContainerResourceMetricStatus container(String container) { * @return container **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "container is the name of the container in the pods of the scaling target") public String getContainer() { return container; } @@ -95,6 +99,7 @@ public V2ContainerResourceMetricStatus current(V2MetricValueStatus current) { * @return current **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricValueStatus getCurrent() { return current; } @@ -114,6 +119,7 @@ public V2ContainerResourceMetricStatus name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the resource in question.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java index 72f5f3b3c5..4803f265aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -75,6 +78,7 @@ public V2CrossVersionObjectReference apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "apiVersion is the API version of the referent") public String getApiVersion() { return apiVersion; } @@ -94,6 +98,7 @@ public V2CrossVersionObjectReference kind(String kind) { * @return kind **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") public String getKind() { return kind; } @@ -113,6 +118,7 @@ public V2CrossVersionObjectReference name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java index edcf732fe6..2035cddb06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) @@ -73,6 +76,7 @@ public V2ExternalMetricSource metric(V2MetricIdentifier metric) { * @return metric **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricIdentifier getMetric() { return metric; } @@ -92,6 +96,7 @@ public V2ExternalMetricSource target(V2MetricTarget target) { * @return target **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricTarget getTarget() { return target; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java index b9eb9af9ca..1c5a14bee0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -73,6 +76,7 @@ public V2ExternalMetricStatus current(V2MetricValueStatus current) { * @return current **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricValueStatus getCurrent() { return current; } @@ -92,6 +96,7 @@ public V2ExternalMetricStatus metric(V2MetricIdentifier metric) { * @return metric **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricIdentifier getMetric() { return metric; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java index b3a76f67c4..7a797fa42b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * HPAScalingPolicy is a single policy which must hold true for a specified past interval. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; @SerializedName(SERIALIZED_NAME_PERIOD_SECONDS) @@ -75,6 +78,7 @@ public V2HPAScalingPolicy periodSeconds(Integer periodSeconds) { * @return periodSeconds **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).") public Integer getPeriodSeconds() { return periodSeconds; } @@ -94,6 +98,7 @@ public V2HPAScalingPolicy type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type is used to specify the scaling policy.") public String getType() { return type; } @@ -113,6 +118,7 @@ public V2HPAScalingPolicy value(Integer value) { * @return value **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "value contains the amount of change which is permitted by the policy. It must be greater than zero") public Integer getValue() { return value; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java index 2f6b9a9b52..45c5797f23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2HPAScalingPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; @SerializedName(SERIALIZED_NAME_POLICIES) @@ -86,6 +89,7 @@ public V2HPAScalingRules addPoliciesItem(V2HPAScalingPolicy policiesItem) { * @return policies **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid") public List getPolicies() { return policies; } @@ -105,6 +109,7 @@ public V2HPAScalingRules selectPolicy(String selectPolicy) { * @return selectPolicy **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.") public String getSelectPolicy() { return selectPolicy; } @@ -124,6 +129,7 @@ public V2HPAScalingRules stabilizationWindowSeconds(Integer stabilizationWindowS * @return stabilizationWindowSeconds **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).") public Integer getStabilizationWindowSeconds() { return stabilizationWindowSeconds; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java index 183ffd769a..b69d083a3a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -86,6 +89,7 @@ public V2HorizontalPodAutoscaler apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -105,6 +109,7 @@ public V2HorizontalPodAutoscaler kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -124,6 +129,7 @@ public V2HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; } @@ -143,6 +149,7 @@ public V2HorizontalPodAutoscaler spec(V2HorizontalPodAutoscalerSpec spec) { * @return spec **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2HorizontalPodAutoscalerSpec getSpec() { return spec; } @@ -162,6 +169,7 @@ public V2HorizontalPodAutoscaler status(V2HorizontalPodAutoscalerStatus status) * @return status **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2HorizontalPodAutoscalerStatus getStatus() { return status; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java index 62da128c0e..3c42a5f48c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2HPAScalingRules; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; @SerializedName(SERIALIZED_NAME_SCALE_DOWN) @@ -72,6 +75,7 @@ public V2HorizontalPodAutoscalerBehavior scaleDown(V2HPAScalingRules scaleDown) * @return scaleDown **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2HPAScalingRules getScaleDown() { return scaleDown; } @@ -91,6 +95,7 @@ public V2HorizontalPodAutoscalerBehavior scaleUp(V2HPAScalingRules scaleUp) { * @return scaleUp **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2HPAScalingRules getScaleUp() { return scaleUp; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java index b58b25b486..d02cf8821f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -84,6 +87,7 @@ public V2HorizontalPodAutoscalerCondition lastTransitionTime(OffsetDateTime last * @return lastTransitionTime **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "lastTransitionTime is the last time the condition transitioned from one status to another") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -103,6 +107,7 @@ public V2HorizontalPodAutoscalerCondition message(String message) { * @return message **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "message is a human-readable explanation containing details about the transition") public String getMessage() { return message; } @@ -122,6 +127,7 @@ public V2HorizontalPodAutoscalerCondition reason(String reason) { * @return reason **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "reason is the reason for the condition's last transition.") public String getReason() { return reason; } @@ -141,6 +147,7 @@ public V2HorizontalPodAutoscalerCondition status(String status) { * @return status **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "status is the status of the condition (True, False, Unknown)") public String getStatus() { return status; } @@ -160,6 +167,7 @@ public V2HorizontalPodAutoscalerCondition type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type describes the current condition") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java index fae2b43020..1b987e4067 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -52,7 +54,8 @@ /** * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -83,6 +86,7 @@ public V2HorizontalPodAutoscalerList apiVersion(String apiVersion) { * @return apiVersion **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getApiVersion() { return apiVersion; } @@ -110,6 +114,7 @@ public V2HorizontalPodAutoscalerList addItemsItem(V2HorizontalPodAutoscaler item * @return items **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "items is the list of horizontal pod autoscaler objects.") public List getItems() { return items; } @@ -129,6 +134,7 @@ public V2HorizontalPodAutoscalerList kind(String kind) { * @return kind **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") public String getKind() { return kind; } @@ -148,6 +154,7 @@ public V2HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { * @return metadata **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java index 40d3246726..e65ac79946 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V2CrossVersionObjectReference; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior; import io.kubernetes.client.openapi.models.V2MetricSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; @SerializedName(SERIALIZED_NAME_BEHAVIOR) @@ -88,6 +91,7 @@ public V2HorizontalPodAutoscalerSpec behavior(V2HorizontalPodAutoscalerBehavior * @return behavior **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2HorizontalPodAutoscalerBehavior getBehavior() { return behavior; } @@ -107,6 +111,7 @@ public V2HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { * @return maxReplicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.") public Integer getMaxReplicas() { return maxReplicas; } @@ -134,6 +139,7 @@ public V2HorizontalPodAutoscalerSpec addMetricsItem(V2MetricSpec metricsItem) { * @return metrics **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.") public List getMetrics() { return metrics; } @@ -153,6 +159,7 @@ public V2HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { * @return minReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.") public Integer getMinReplicas() { return minReplicas; } @@ -172,6 +179,7 @@ public V2HorizontalPodAutoscalerSpec scaleTargetRef(V2CrossVersionObjectReferenc * @return scaleTargetRef **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java index e6d327d7b1..1084b80221 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition; import io.kubernetes.client.openapi.models.V2MetricStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -53,7 +55,8 @@ /** * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -100,6 +103,7 @@ public V2HorizontalPodAutoscalerStatus addConditionsItem(V2HorizontalPodAutoscal * @return conditions **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.") public List getConditions() { return conditions; } @@ -127,6 +131,7 @@ public V2HorizontalPodAutoscalerStatus addCurrentMetricsItem(V2MetricStatus curr * @return currentMetrics **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "currentMetrics is the last read state of the metrics used by this autoscaler.") public List getCurrentMetrics() { return currentMetrics; } @@ -146,6 +151,7 @@ public V2HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) * @return currentReplicas **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.") public Integer getCurrentReplicas() { return currentReplicas; } @@ -165,6 +171,7 @@ public V2HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) * @return desiredReplicas **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.") public Integer getDesiredReplicas() { return desiredReplicas; } @@ -184,6 +191,7 @@ public V2HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTim * @return lastScaleTime **/ @jakarta.annotation.Nullable + @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 OffsetDateTime getLastScaleTime() { return lastScaleTime; } @@ -203,6 +211,7 @@ public V2HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneratio * @return observedGeneration **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "observedGeneration is the most recent generation observed by this autoscaler.") public Long getObservedGeneration() { return observedGeneration; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java index e2796a7b86..4481d820f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * MetricIdentifier defines the name and optionally selector for a metric */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -72,6 +75,7 @@ public V2MetricIdentifier name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the given metric") public String getName() { return name; } @@ -91,6 +95,7 @@ public V2MetricIdentifier selector(V1LabelSelector selector) { * @return selector **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getSelector() { return selector; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java index 254eb5c074..efdd15083b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +23,8 @@ import io.kubernetes.client.openapi.models.V2ObjectMetricSource; import io.kubernetes.client.openapi.models.V2PodsMetricSource; import io.kubernetes.client.openapi.models.V2ResourceMetricSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) @@ -92,6 +95,7 @@ public V2MetricSpec containerResource(V2ContainerResourceMetricSource containerR * @return containerResource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ContainerResourceMetricSource getContainerResource() { return containerResource; } @@ -111,6 +115,7 @@ public V2MetricSpec external(V2ExternalMetricSource external) { * @return external **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ExternalMetricSource getExternal() { return external; } @@ -130,6 +135,7 @@ public V2MetricSpec _object(V2ObjectMetricSource _object) { * @return _object **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ObjectMetricSource getObject() { return _object; } @@ -149,6 +155,7 @@ public V2MetricSpec pods(V2PodsMetricSource pods) { * @return pods **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2PodsMetricSource getPods() { return pods; } @@ -168,6 +175,7 @@ public V2MetricSpec resource(V2ResourceMetricSource resource) { * @return resource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ResourceMetricSource getResource() { return resource; } @@ -187,6 +195,7 @@ public V2MetricSpec type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java index 7ed6440ce7..ae2a19f88f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +23,8 @@ import io.kubernetes.client.openapi.models.V2ObjectMetricStatus; import io.kubernetes.client.openapi.models.V2PodsMetricStatus; import io.kubernetes.client.openapi.models.V2ResourceMetricStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -53,7 +55,8 @@ /** * MetricStatus describes the last-read state of a single metric. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MetricStatus describes the last-read state of a single metric.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) @@ -92,6 +95,7 @@ public V2MetricStatus containerResource(V2ContainerResourceMetricStatus containe * @return containerResource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ContainerResourceMetricStatus getContainerResource() { return containerResource; } @@ -111,6 +115,7 @@ public V2MetricStatus external(V2ExternalMetricStatus external) { * @return external **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ExternalMetricStatus getExternal() { return external; } @@ -130,6 +135,7 @@ public V2MetricStatus _object(V2ObjectMetricStatus _object) { * @return _object **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ObjectMetricStatus getObject() { return _object; } @@ -149,6 +155,7 @@ public V2MetricStatus pods(V2PodsMetricStatus pods) { * @return pods **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2PodsMetricStatus getPods() { return pods; } @@ -168,6 +175,7 @@ public V2MetricStatus resource(V2ResourceMetricStatus resource) { * @return resource **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V2ResourceMetricStatus getResource() { return resource; } @@ -187,6 +195,7 @@ public V2MetricStatus type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java index 990e8f2916..0d7fceee42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * MetricTarget defines the target value, average value, or average utilization of a specific metric */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MetricTarget defines the target value, average value, or average utilization of a specific metric") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) @@ -80,6 +83,7 @@ public V2MetricTarget averageUtilization(Integer averageUtilization) { * @return averageUtilization **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type") public Integer getAverageUtilization() { return averageUtilization; } @@ -99,6 +103,7 @@ public V2MetricTarget averageValue(Quantity averageValue) { * @return averageValue **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getAverageValue() { return averageValue; } @@ -118,6 +123,7 @@ public V2MetricTarget type(String type) { * @return type **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "type represents whether the metric type is Utilization, Value, or AverageValue") public String getType() { return type; } @@ -137,6 +143,7 @@ public V2MetricTarget value(Quantity value) { * @return value **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getValue() { return value; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java index f73a33f9ec..5069a35d21 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * MetricValueStatus holds the current value for a metric */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "MetricValueStatus holds the current value for a metric") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) @@ -76,6 +79,7 @@ public V2MetricValueStatus averageUtilization(Integer averageUtilization) { * @return averageUtilization **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") public Integer getAverageUtilization() { return averageUtilization; } @@ -95,6 +99,7 @@ public V2MetricValueStatus averageValue(Quantity averageValue) { * @return averageValue **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getAverageValue() { return averageValue; } @@ -114,6 +119,7 @@ public V2MetricValueStatus value(Quantity value) { * @return value **/ @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getValue() { return value; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java index 9e2aabeafb..2ed4755f46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V2CrossVersionObjectReference; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; @SerializedName(SERIALIZED_NAME_DESCRIBED_OBJECT) @@ -78,6 +81,7 @@ public V2ObjectMetricSource describedObject(V2CrossVersionObjectReference descri * @return describedObject **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2CrossVersionObjectReference getDescribedObject() { return describedObject; } @@ -97,6 +101,7 @@ public V2ObjectMetricSource metric(V2MetricIdentifier metric) { * @return metric **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricIdentifier getMetric() { return metric; } @@ -116,6 +121,7 @@ public V2ObjectMetricSource target(V2MetricTarget target) { * @return target **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricTarget getTarget() { return target; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java index 179dcd9e59..b1b48c1ca8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +21,8 @@ import io.kubernetes.client.openapi.models.V2CrossVersionObjectReference; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -51,7 +53,8 @@ /** * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -78,6 +81,7 @@ public V2ObjectMetricStatus current(V2MetricValueStatus current) { * @return current **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricValueStatus getCurrent() { return current; } @@ -97,6 +101,7 @@ public V2ObjectMetricStatus describedObject(V2CrossVersionObjectReference descri * @return describedObject **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2CrossVersionObjectReference getDescribedObject() { return describedObject; } @@ -116,6 +121,7 @@ public V2ObjectMetricStatus metric(V2MetricIdentifier metric) { * @return metric **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricIdentifier getMetric() { return metric; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java index 9de452a94a..a4ed0a9892 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) @@ -73,6 +76,7 @@ public V2PodsMetricSource metric(V2MetricIdentifier metric) { * @return metric **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricIdentifier getMetric() { return metric; } @@ -92,6 +96,7 @@ public V2PodsMetricSource target(V2MetricTarget target) { * @return target **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricTarget getTarget() { return target; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java index 9d20f25a27..ae3284d5d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,6 +20,8 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricIdentifier; import io.kubernetes.client.openapi.models.V2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -50,7 +52,8 @@ /** * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -73,6 +76,7 @@ public V2PodsMetricStatus current(V2MetricValueStatus current) { * @return current **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricValueStatus getCurrent() { return current; } @@ -92,6 +96,7 @@ public V2PodsMetricStatus metric(V2MetricIdentifier metric) { * @return metric **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricIdentifier getMetric() { return metric; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java index 8bbba15c95..532ce979d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -72,6 +75,7 @@ public V2ResourceMetricSource name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the resource in question.") public String getName() { return name; } @@ -91,6 +95,7 @@ public V2ResourceMetricSource target(V2MetricTarget target) { * @return target **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricTarget getTarget() { return target; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java index eba737e9cf..12aa5e1df0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +19,8 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -49,7 +51,8 @@ /** * 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. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "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.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class V2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -72,6 +75,7 @@ public V2ResourceMetricStatus current(V2MetricValueStatus current) { * @return current **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2MetricValueStatus getCurrent() { return current; } @@ -91,6 +95,7 @@ public V2ResourceMetricStatus name(String name) { * @return name **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "name is the name of the resource in question.") public String getName() { return name; } 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 14be0c1770..d219ff9053 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 2024 The Kubernetes Authors. +Copyright 2025 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,6 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.Arrays; @@ -48,7 +50,8 @@ /** * Info contains versioning information. how we'll want to distribute that information. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@ApiModel(description = "Info contains versioning information. how we'll want to distribute that information.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0") public class VersionInfo { public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; @SerializedName(SERIALIZED_NAME_BUILD_DATE) @@ -99,6 +102,7 @@ public VersionInfo buildDate(String buildDate) { * @return buildDate **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getBuildDate() { return buildDate; } @@ -118,6 +122,7 @@ public VersionInfo compiler(String compiler) { * @return compiler **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getCompiler() { return compiler; } @@ -137,6 +142,7 @@ public VersionInfo gitCommit(String gitCommit) { * @return gitCommit **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getGitCommit() { return gitCommit; } @@ -156,6 +162,7 @@ public VersionInfo gitTreeState(String gitTreeState) { * @return gitTreeState **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getGitTreeState() { return gitTreeState; } @@ -175,6 +182,7 @@ public VersionInfo gitVersion(String gitVersion) { * @return gitVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getGitVersion() { return gitVersion; } @@ -194,6 +202,7 @@ public VersionInfo goVersion(String goVersion) { * @return goVersion **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getGoVersion() { return goVersion; } @@ -213,6 +222,7 @@ public VersionInfo major(String major) { * @return major **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getMajor() { return major; } @@ -232,6 +242,7 @@ public VersionInfo minor(String minor) { * @return minor **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getMinor() { return minor; } @@ -251,6 +262,7 @@ public VersionInfo platform(String platform) { * @return platform **/ @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getPlatform() { return platform; } diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index ab6959da68..770f76ca1a 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -96280,7 +96280,7 @@ } } }, - "/apis/{group}/{version}/{plural}#\u200e": { + "/apis/{group}/{version}/{resource_plural}": { "parameters": [ { "uniqueItems": true, @@ -96304,7 +96304,7 @@ "type": "string" }, { - "name": "plural", + "name": "resource_plural", "in": "path", "required": true, "description": "The custom resource's plural name. For TPRs this would be lowercase plural kind.", @@ -96910,6 +96910,13 @@ "name": "dryRun", "type": "string", "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true } ], "responses": {