Skip to content

Commit 4f57c31

Browse files
authored
Merge pull request #3895 from yue9944882/fork-automated-generate-72611e6f
Generate openapi model for release-22 from upstream release 1.31
2 parents 80bc9bb + 13864fd commit 4f57c31

File tree

711 files changed

+5918
-1392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

711 files changed

+5918
-1392
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b41435edfacf2f648f065211836417b7ac128554c81938a2f41fa23f326b7cd3
1+
55bb6dc96902e8bb64d4518816cf258124f7232ddcfac6d7e4c023b6c95f0788

kubernetes/api/openapi.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72586,7 +72586,7 @@ paths:
7258672586
- custom_objects
7258772587
x-accepts:
7258872588
- application/json
72589-
/apis/{group}/{version}/{plural}#‎:
72589+
/apis/{group}/{version}/{resource_plural}:
7259072590
get:
7259172591
description: list or watch namespace scoped custom objects
7259272592
operationId: listCustomObjectForAllNamespaces
@@ -72611,7 +72611,7 @@ paths:
7261172611
- description: The custom resource's plural name. For TPRs this would be lowercase
7261272612
plural kind.
7261372613
in: path
72614-
name: plural
72614+
name: resource_plural
7261572615
required: true
7261672616
schema:
7261772617
type: string
@@ -73067,6 +73067,12 @@ paths:
7306773067
name: dryRun
7306873068
schema:
7306973069
type: string
73070+
- description: A selector to restrict the list of returned objects by their
73071+
fields. Defaults to everything.
73072+
in: query
73073+
name: fieldSelector
73074+
schema:
73075+
type: string
7307073076
requestBody:
7307173077
content:
7307273078
application/json:

kubernetes/docs/CustomObjectsApi.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ All URIs are relative to *http://localhost*
1818
| [**getNamespacedCustomObjectScale**](CustomObjectsApi.md#getNamespacedCustomObjectScale) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | |
1919
| [**getNamespacedCustomObjectStatus**](CustomObjectsApi.md#getNamespacedCustomObjectStatus) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | |
2020
| [**listClusterCustomObject**](CustomObjectsApi.md#listClusterCustomObject) | **GET** /apis/{group}/{version}/{plural} | |
21-
| [**listCustomObjectForAllNamespaces**](CustomObjectsApi.md#listCustomObjectForAllNamespaces) | **GET** /apis/{group}/{version}/{plural}#‎ | |
21+
| [**listCustomObjectForAllNamespaces**](CustomObjectsApi.md#listCustomObjectForAllNamespaces) | **GET** /apis/{group}/{version}/{resource_plural} | |
2222
| [**listNamespacedCustomObject**](CustomObjectsApi.md#listNamespacedCustomObject) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural} | |
2323
| [**patchClusterCustomObject**](CustomObjectsApi.md#patchClusterCustomObject) | **PATCH** /apis/{group}/{version}/{plural}/{name} | |
2424
| [**patchClusterCustomObjectScale**](CustomObjectsApi.md#patchClusterCustomObjectScale) | **PATCH** /apis/{group}/{version}/{plural}/{name}/scale | |
@@ -404,7 +404,7 @@ public class Example {
404404

405405
<a id="deleteCollectionNamespacedCustomObject"></a>
406406
# **deleteCollectionNamespacedCustomObject**
407-
> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural).pretty(pretty).labelSelector(labelSelector).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).dryRun(dryRun).body(body).execute();
407+
> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural).pretty(pretty).labelSelector(labelSelector).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).dryRun(dryRun).fieldSelector(fieldSelector).body(body).execute();
408408
409409

410410

@@ -442,6 +442,7 @@ public class Example {
442442
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.
443443
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.
444444
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
445+
String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything.
445446
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions |
446447
try {
447448
Object result = apiInstance.deleteCollectionNamespacedCustomObject(group, version, namespace, plural)
@@ -451,6 +452,7 @@ public class Example {
451452
.orphanDependents(orphanDependents)
452453
.propagationPolicy(propagationPolicy)
453454
.dryRun(dryRun)
455+
.fieldSelector(fieldSelector)
454456
.body(body)
455457
.execute();
456458
System.out.println(result);
@@ -479,6 +481,7 @@ public class Example {
479481
| **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 \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
480482
| **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] |
481483
| **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] |
484+
| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
482485
| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] |
483486

484487
### Return type
@@ -1242,7 +1245,7 @@ public class Example {
12421245

12431246
<a id="listCustomObjectForAllNamespaces"></a>
12441247
# **listCustomObjectForAllNamespaces**
1245-
> 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();
1248+
> 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();
12461249
12471250

12481251

@@ -1272,7 +1275,7 @@ public class Example {
12721275
CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient);
12731276
String group = "group_example"; // String | The custom resource's group name
12741277
String version = "version_example"; // String | The custom resource's version
1275-
String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind.
1278+
String resourcePlural = "resourcePlural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind.
12761279
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
12771280
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.
12781281
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 {
12841287
Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
12851288
Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
12861289
try {
1287-
Object result = apiInstance.listCustomObjectForAllNamespaces(group, version, plural)
1290+
Object result = apiInstance.listCustomObjectForAllNamespaces(group, version, resourcePlural)
12881291
.pretty(pretty)
12891292
.allowWatchBookmarks(allowWatchBookmarks)
12901293
._continue(_continue)
@@ -1314,7 +1317,7 @@ public class Example {
13141317
|------------- | ------------- | ------------- | -------------|
13151318
| **group** | **String**| The custom resource&#39;s group name | |
13161319
| **version** | **String**| The custom resource&#39;s version | |
1317-
| **plural** | **String**| The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind. | |
1320+
| **resourcePlural** | **String**| The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind. | |
13181321
| **pretty** | **String**| If &#39;true&#39;, then the output is pretty printed. | [optional] |
13191322
| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;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] |
13201323
| **_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 \&quot;next key\&quot;. 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] |

kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at

kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at
@@ -140,7 +140,7 @@ private void init() {
140140
json = new JSON();
141141

142142
// Set default User-Agent.
143-
setUserAgent("Kubernetes Java Client/21.0.0-SNAPSHOT");
143+
setUserAgent("Kubernetes Java Client/22.0.1-SNAPSHOT");
144144

145145
authentications = new HashMap<String, Authentication>();
146146
}

kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at
@@ -20,7 +20,7 @@
2020
* <p>ApiException class.</p>
2121
*/
2222
@SuppressWarnings("serial")
23-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0")
23+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0")
2424
public class ApiException extends Exception {
2525
private static final long serialVersionUID = 1L;
2626

kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at

kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at
@@ -12,9 +12,9 @@
1212
*/
1313
package io.kubernetes.client.openapi;
1414

15-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T19:37:38.574271Z[Etc/UTC]", comments = "Generator version: 7.6.0")
15+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-04T19:05:53.712211Z[Etc/UTC]", comments = "Generator version: 7.6.0")
1616
public class Configuration {
17-
public static final String VERSION = "21.0.0-SNAPSHOT";
17+
public static final String VERSION = "22.0.1-SNAPSHOT";
1818

1919
private static ApiClient defaultApiClient = new ApiClient();
2020

kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at

kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at

0 commit comments

Comments
 (0)